Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import sqlite3
|
|
5 |
import google.generativeai as genai
|
6 |
|
7 |
# Load environment variables (optional, if you're using .env files for other secrets)
|
8 |
-
|
9 |
|
10 |
-
# Retrieve the API key securely from Streamlit secrets
|
11 |
-
GOOGLE_API_KEY = st.secrets["gemini"]["GOOGLE_API_KEY"]
|
12 |
|
13 |
# Configure Gemini API with the API Key from secrets
|
14 |
genai.configure(api_key=API_KEY)
|
|
|
5 |
import google.generativeai as genai
|
6 |
|
7 |
# Load environment variables (optional, if you're using .env files for other secrets)
|
8 |
+
load_dotenv()
|
9 |
|
10 |
+
# # Retrieve the API key securely from Streamlit secrets
|
11 |
+
# GOOGLE_API_KEY = st.secrets["gemini"]["GOOGLE_API_KEY"]
|
12 |
|
13 |
# Configure Gemini API with the API Key from secrets
|
14 |
genai.configure(api_key=API_KEY)
|