jerrypan7 commited on
Commit
05109f8
·
verified ·
1 Parent(s): 65a4fb1

Update app.py

Browse files

reset content at start

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -322,9 +322,9 @@ async def inference_via_llm_api(input_text, min_new_tokens=2, max_new_tokens=64)
322
 
323
  async def transcribe_and_speak(audio, source_lang, target_lang, youtube_url=None, target_speaker=None, progress_tracker=None):
324
  global transcription_update, translation_update, audio_update, acc_cosy_audio,audio_update_event
325
- transcription_update = {"content": "", "new": False}
326
- translation_update = {"content": "", "new": False}
327
- audio_update = {"content": None, "new": False}
328
  acc_cosy_audio =None
329
  video_path = None
330
  audio_update_event.clear()
 
322
 
323
  async def transcribe_and_speak(audio, source_lang, target_lang, youtube_url=None, target_speaker=None, progress_tracker=None):
324
  global transcription_update, translation_update, audio_update, acc_cosy_audio,audio_update_event
325
+ transcription_update = {"content": "", "new": True}
326
+ translation_update = {"content": "", "new": True}
327
+ audio_update = {"content": None, "new": True}
328
  acc_cosy_audio =None
329
  video_path = None
330
  audio_update_event.clear()