File size: 1,446 Bytes
77df06c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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.

1.  **Commit your changes**:
    ```bash
    git add .
    git commit -m "Initial commit of Research Agent app"
    ```

2.  **Push to GitHub**:
    - Create a new repository on GitHub.
    - Follow the instructions to push your local repository to GitHub.
    ```bash
    git remote add origin <your-repo-url>
    git branch -M main
    git push -u origin main
    ```

## 2. Deploy on Streamlit Cloud

1.  Go to [share.streamlit.io](https://share.streamlit.io/).
2.  Sign in with your GitHub account.
3.  Click **"New app"**.
4.  Select your repository, branch (`main`), and the main file path (`app.py`).
5.  Click **"Deploy!"**.

## 3. Configure Secrets

Your app needs API keys to work. You must set these in the Streamlit Cloud dashboard.

1.  On your app's dashboard, click **"Manage app"** (bottom right) or the three dots menu -> **"Settings"**.
2.  Go to the **"Secrets"** tab.
3.  Paste your secrets in the TOML format:

    ```toml
    GOOGLE_API_KEY = "your-google-api-key-here"
    ```
    *(Copy the value from your local `.env` file, but do not include the `export` keyword if present).*

4.  Click **"Save"**.

## 4. Verify

Once deployed and secrets are saved, your app should automatically refresh and be ready to use!