Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ try:
|
|
| 12 |
if not api_key:
|
| 13 |
raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
|
| 14 |
genai.configure(api_key=api_key)
|
| 15 |
-
model = genai.GenerativeModel('gemini-2.5-
|
| 16 |
except Exception as e:
|
| 17 |
print(f"Error configuring GenerativeAI: {e}")
|
| 18 |
model = None
|
|
|
|
| 12 |
if not api_key:
|
| 13 |
raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
|
| 14 |
genai.configure(api_key=api_key)
|
| 15 |
+
model = genai.GenerativeModel('gemini-2.5-flash')
|
| 16 |
except Exception as e:
|
| 17 |
print(f"Error configuring GenerativeAI: {e}")
|
| 18 |
model = None
|