parent
8df1bd3cec
commit
aa38345587
|
|
@ -169,7 +169,7 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||||
saved = await save_video_summary(url, title, transcript, combined_summary)
|
saved = await save_video_summary(url, title, transcript, combined_summary)
|
||||||
|
|
||||||
# Wyślij końcowe streszczenie niezależnie od ilości fragmentów
|
# Wyślij końcowe streszczenie niezależnie od ilości fragmentów
|
||||||
if len(chunks) > 3:
|
if len(chunks) > 1:
|
||||||
final_text = f"*Ostateczne streszczenie filmu:*\n*{title}*\n\n{combined_summary}"
|
final_text = f"*Ostateczne streszczenie filmu:*\n*{title}*\n\n{combined_summary}"
|
||||||
else:
|
else:
|
||||||
# Dla krótszych filmów po prostu wyślij streszczenie
|
# Dla krótszych filmów po prostu wyślij streszczenie
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue