Ujeshhh commited on
Commit
2545d77
·
verified ·
1 Parent(s): a42d2f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-pro")
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."