You can talk to a SQL database containing a Insurance company's data like Customer, Policy, Quote, Sales, Commissions, Claims, Address, Agent
talk2data_sample.mp4
-
Push to GitHub
Ensure your repository (includingTalk2DataINSUR.py,requirements.txt,Procfile, and thedata/folder with your SQLite databases) is pushed to GitHub. -
Create a Streamlit Cloud App
- Go to https://streamlit.io/cloud and log in with your GitHub account.
- Click New app, select your repo and branch, and set the Main file to
Talk2DataINSUR.py.
-
Configure Secrets
- In the app settings, go to Secrets and add your Google API key:
GOOGLE_API_KEY = "<your-google-api-key>"
- Do not commit your actual key into version control.
- In the app settings, go to Secrets and add your Google API key:
-
Verify Requirements & Config
requirements.txtlists all Python dependencies.Procfileinstructs Streamlit Cloud to runstreamlit run Talk2DataINSUR.py..streamlit/config.tomlis configured for headless mode.
-
Deploy
Once configured, click Deploy. The app will build using yourrequirements.txtand launch the Streamlit interface. -
Updates
- To apply code changes, push commits to GitHub and Streamlit Cloud will automatically rebuild.
- For secret changes (e.g., rotating API keys), update them in the app settings.