ashishmehra1926 commited on
Commit
f587e4f
·
verified ·
1 Parent(s): 96298f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # 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)
 
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)