Tobaly commited on
Commit
876ad56
·
verified ·
1 Parent(s): c9a8123

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -446,7 +446,7 @@ class ComprehensivePodcastReport:
446
  return hebrew_title[:40] + '...'
447
 
448
  try:
449
- model = genai.GenerativeModel('gemini-2.0-flash-exp')
450
  prompt = f"""Analyze the Hebrew podcast title "{hebrew_title}". Generate a short, readable English legend title formatted as "[Guest Name] - #[Episode Number]". Transliterate the name. If there is no episode number, use only the name. If there is no name, create a concise English summary of the topic. If you recognize מהדורת מוסף in the title, then the output would be: "Investors Panel - #[Episode Number]".The final title must be under 5 words."""
451
  response = model.generate_content(prompt)
452
  time.sleep(1.5)
 
446
  return hebrew_title[:40] + '...'
447
 
448
  try:
449
+ model = genai.GenerativeModel('gemini-2.5-flash')
450
  prompt = f"""Analyze the Hebrew podcast title "{hebrew_title}". Generate a short, readable English legend title formatted as "[Guest Name] - #[Episode Number]". Transliterate the name. If there is no episode number, use only the name. If there is no name, create a concise English summary of the topic. If you recognize מהדורת מוסף in the title, then the output would be: "Investors Panel - #[Episode Number]".The final title must be under 5 words."""
451
  response = model.generate_content(prompt)
452
  time.sleep(1.5)