Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def analyze_text(text):
|
|
24 |
# Summarization using Google Gemini AI
|
25 |
try:
|
26 |
prompt = f"Summarize this text:\n{text}"
|
27 |
-
model = genai.GenerativeModel(model_name="gemini-
|
28 |
response = model.generate_content([prompt]) # Ensure the prompt is passed as a list
|
29 |
|
30 |
summary = response.text.strip() if response and hasattr(response, "text") else "Error in summarization."
|
|
|
24 |
# Summarization using Google Gemini AI
|
25 |
try:
|
26 |
prompt = f"Summarize this text:\n{text}"
|
27 |
+
model = genai.GenerativeModel(model_name="gemini-2.0-flash")
|
28 |
response = model.generate_content([prompt]) # Ensure the prompt is passed as a list
|
29 |
|
30 |
summary = response.text.strip() if response and hasattr(response, "text") else "Error in summarization."
|