Skip to content

Commit

Permalink
chore: Update streamlit sample app to use default environment variabl…
Browse files Browse the repository at this point in the history
…es (#1722)
  • Loading branch information
holtskinner authored Feb 11, 2025
1 parent 597455a commit 68976cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gemini/sample-apps/gemini-streamlit-cloudrun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To run the Streamlit Application locally (on Cloud Shell), we need to perform th
- If you are using [Vertex AI in express mode](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview):

```bash
export VERTEX_AI_API_KEY='<Your Vertex AI API Key>' # Change this
export GOOGLE_API_KEY='<Your Vertex AI API Key>' # Change this
```

3. To run the application locally, execute the following command:
Expand Down
2 changes: 1 addition & 1 deletion gemini/sample-apps/gemini-streamlit-cloudrun/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from google.genai.types import GenerateContentConfig, Part
import streamlit as st

API_KEY = os.environ.get("VERTEX_AI_API_KEY")
API_KEY = os.environ.get("GOOGLE_API_KEY")
PROJECT_ID = os.environ.get("GOOGLE_CLOUD_PROJECT")
LOCATION = os.environ.get("GOOGLE_CLOUD_REGION")

Expand Down

0 comments on commit 68976cd

Please sign in to comment.