Spaces:
Runtime error
Runtime error
Update app.py
Browse filesreset content at start
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":
|
326 |
-
translation_update = {"content": "", "new":
|
327 |
-
audio_update = {"content": None, "new":
|
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()
|