Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,8 @@ try:
|
|
42 |
genai.configure(api_key=api_key)
|
43 |
# Specify a model compatible with function calling or more advanced generation if needed.
|
44 |
# Using 'gemini-1.5-pro-latest' for potential better performance, check compatibility if issues arise.
|
45 |
-
model = genai.GenerativeModel('gemini-2.5-pro-preview-03-25'
|
46 |
-
logging.info("Gemini AI configured successfully using 'gemini-
|
47 |
except Exception as e:
|
48 |
logging.error(f"Error configuring Gemini AI: {e}", exc_info=True)
|
49 |
model = None
|
|
|
42 |
genai.configure(api_key=api_key)
|
43 |
# Specify a model compatible with function calling or more advanced generation if needed.
|
44 |
# Using 'gemini-1.5-pro-latest' for potential better performance, check compatibility if issues arise.
|
45 |
+
model = genai.GenerativeModel('gemini-2.5-pro-preview-03-25') # Updated model
|
46 |
+
logging.info("Gemini AI configured successfully using 'gemini-2.5-pro-preview-03-25'.")
|
47 |
except Exception as e:
|
48 |
logging.error(f"Error configuring Gemini AI: {e}", exc_info=True)
|
49 |
model = None
|