Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")
|
|
| 27 |
if GEMINI_API_KEY:
|
| 28 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 29 |
|
| 30 |
-
ai_model = genai.GenerativeModel('gemini-
|
| 31 |
|
| 32 |
def _truncate_to_words(text: str, limit: int) -> str:
|
| 33 |
"""Truncates text by word count."""
|
|
|
|
| 27 |
if GEMINI_API_KEY:
|
| 28 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 29 |
|
| 30 |
+
ai_model = genai.GenerativeModel('gemini-2.5-pro')
|
| 31 |
|
| 32 |
def _truncate_to_words(text: str, limit: int) -> str:
|
| 33 |
"""Truncates text by word count."""
|