Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ GEMINI_API_KEY = st.secrets.get("GEMINI_API_KEY")
|
|
| 23 |
if GEMINI_API_KEY:
|
| 24 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 25 |
|
| 26 |
-
ai_model = genai.GenerativeModel('gemini-
|
| 27 |
|
| 28 |
def _truncate_to_words(text: str, limit: int) -> str:
|
| 29 |
"""Truncates text by word count."""
|
|
|
|
| 23 |
if GEMINI_API_KEY:
|
| 24 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 25 |
|
| 26 |
+
ai_model = genai.GenerativeModel('gemini-3.1-flash-lite-preview')
|
| 27 |
|
| 28 |
def _truncate_to_words(text: str, limit: int) -> str:
|
| 29 |
"""Truncates text by word count."""
|