Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ try:
|
|
| 15 |
if not api_key:
|
| 16 |
raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
|
| 17 |
genai.configure(api_key=api_key)
|
| 18 |
-
model = genai.GenerativeModel('gemini-
|
| 19 |
except Exception as e:
|
| 20 |
print(f"Error configuring GenerativeAI: {e}")
|
| 21 |
# Handle the case where the API key is not set, e.g., by disabling the interface or showing an error.
|
|
|
|
| 15 |
if not api_key:
|
| 16 |
raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
|
| 17 |
genai.configure(api_key=api_key)
|
| 18 |
+
model = genai.GenerativeModel('gemini-2.5-flash')
|
| 19 |
except Exception as e:
|
| 20 |
print(f"Error configuring GenerativeAI: {e}")
|
| 21 |
# Handle the case where the API key is not set, e.g., by disabling the interface or showing an error.
|