Nikita Makarov commited on
Commit
e035536
·
1 Parent(s): 2dd2c1c

Fix podcast iframe: initialize music_player_html and add fallback

Browse files
Files changed (1) hide show
  1. src/app.py +3 -0
src/app.py CHANGED
@@ -668,6 +668,9 @@ def play_next_segment():
668
  intro = segment.get("intro", "")
669
  podcast = segment.get("podcast", {})
670
 
 
 
 
671
  if intro and getattr(tts_service, "available", True):
672
  audio_bytes = tts_service.text_to_speech(intro)
673
  if audio_bytes:
 
668
  intro = segment.get("intro", "")
669
  podcast = segment.get("podcast", {})
670
 
671
+ # Initialize music_player_html for podcast
672
+ music_player_html = ""
673
+
674
  if intro and getattr(tts_service, "available", True):
675
  audio_bytes = tts_service.text_to_speech(intro)
676
  if audio_bytes: