ans123 commited on
Commit
3398c89
·
verified ·
1 Parent(s): fc476e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -36,11 +36,8 @@ logger = logging.getLogger(__name__)
36
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY", "your-api-key")
37
  SERPER_API_KEY = os.getenv("SERPER_API_KEY", "your-serper-api-key")
38
 
39
- # Configure Google GenAI
40
- genai.configure(api_key=GOOGLE_API_KEY)
41
-
42
- # Init the client
43
- client = genai.Client()
44
 
45
  # Model configuration - using Gemini latest model
46
  MODEL_ID = "gemini-2.0-flash-001"
 
36
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY", "your-api-key")
37
  SERPER_API_KEY = os.getenv("SERPER_API_KEY", "your-serper-api-key")
38
 
39
+ # Initialize the client with the API key - FIXED
40
+ client = genai.Client(api_key=GOOGLE_API_KEY)
 
 
 
41
 
42
  # Model configuration - using Gemini latest model
43
  MODEL_ID = "gemini-2.0-flash-001"