Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -446,7 +446,7 @@ class ComprehensivePodcastReport:
|
|
| 446 |
return hebrew_title[:40] + '...'
|
| 447 |
|
| 448 |
try:
|
| 449 |
-
model = genai.GenerativeModel('gemini-2.
|
| 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)
|