cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Web application integrated with Gradio or streamlit on Databricks

Phani1
Valued Contributor II

We are trying to run a web application integrated with Gradio on Databricks. 

Although, we have configured launch parameter with (share="True")

The app executes and gives us output but it keeps on running with no Public URL is generated:

o/p: Running on local URL: http://0.0.0.0:7862

Query 1: Please let us know how can we use databricks cluster with Gradio and utilize it for running it on Public URL.

Query 2: Can you share the procedure/document to use Streamlit within Databricks ?

Streamlit uses Streamlit command to run the app and generate UI  

1 ACCEPTED SOLUTION

Accepted Solutions

Ryan_Chynoweth
Honored Contributor III

Generally speaking, I think people use the Databricks SQL connector for Python to connect Streamlit to Databricks data. I think you would run the web server on a container or different server. Not necessarily a databricks cluster.

https://docs.databricks.com/dev-tools/python-sql-connector.html

This example uses pandas but I would recommend the connector I linked above here.

View solution in original post

2 REPLIES 2

Ryan_Chynoweth
Honored Contributor III

Generally speaking, I think people use the Databricks SQL connector for Python to connect Streamlit to Databricks data. I think you would run the web server on a container or different server. Not necessarily a databricks cluster.

https://docs.databricks.com/dev-tools/python-sql-connector.html

This example uses pandas but I would recommend the connector I linked above here.

Anonymous
Not applicable

Hi @Janga Reddy​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group