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

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! 

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!