Manojkumarpandi commited on
Commit
00ae65d
Β·
verified Β·
1 Parent(s): f477227

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -3,15 +3,16 @@ import google.generativeai as genai
3
  import os
4
  from dotenv import load_dotenv
5
 
 
 
6
 
 
7
 
8
- load_dotenv() # βœ… Load environment variables from .env
9
- google_api_key = os.getenv("GOOGLE_API_KEY")
10
 
11
- if not google_api_key:
12
  raise ValueError("❌ GOOGLE_API_KEY is missing. Please check your .env file.")
13
 
14
-
15
  # Streamlit Page Configuration
16
  st.set_page_config(
17
  page_title="VitalEdge: Your AI-Powered Health & Fitness Companion 🌟",
 
3
  import os
4
  from dotenv import load_dotenv
5
 
6
+ import os
7
+ from dotenv import load_dotenv
8
 
9
+ load_dotenv() # Load environment variables
10
 
11
+ print("DEBUG: GOOGLE_API_KEY:", os.getenv("GOOGLE_API_KEY")) # Debugging
 
12
 
13
+ if not os.getenv("GOOGLE_API_KEY"):
14
  raise ValueError("❌ GOOGLE_API_KEY is missing. Please check your .env file.")
15
 
 
16
  # Streamlit Page Configuration
17
  st.set_page_config(
18
  page_title="VitalEdge: Your AI-Powered Health & Fitness Companion 🌟",