Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.54.0
Deploying to Streamlit Community Cloud
Follow these steps to publish your Research Agent app to the internet.
1. Prepare your Repository
Streamlit Cloud deploys directly from your GitHub repository.
Commit your changes:
git add . git commit -m "Initial commit of Research Agent app"Push to GitHub:
- Create a new repository on GitHub.
- Follow the instructions to push your local repository to GitHub.
git remote add origin <your-repo-url> git branch -M main git push -u origin main
2. Deploy on Streamlit Cloud
- Go to share.streamlit.io.
- Sign in with your GitHub account.
- Click "New app".
- Select your repository, branch (
main), and the main file path (app.py). - Click "Deploy!".
3. Configure Secrets
Your app needs API keys to work. You must set these in the Streamlit Cloud dashboard.
On your app's dashboard, click "Manage app" (bottom right) or the three dots menu -> "Settings".
Go to the "Secrets" tab.
Paste your secrets in the TOML format:
GOOGLE_API_KEY = "your-google-api-key-here"(Copy the value from your local
.envfile, but do not include theexportkeyword if present).Click "Save".
4. Verify
Once deployed and secrets are saved, your app should automatically refresh and be ready to use!