cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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! 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.