Update app.py
Browse files
app.py
CHANGED
@@ -258,7 +258,8 @@ def txt2speech(text):
|
|
258 |
def main(audio_filepath, src_lang, tgt_lang, pnc):
|
259 |
translated = transcribe(audio_filepath, src_lang, tgt_lang, pnc)
|
260 |
answer = llm_pipe(translated, **generation_args)
|
261 |
-
return [answer[0]['generated_text'], 'audio_out.mp3']
|
|
|
262 |
|
263 |
|
264 |
|
|
|
258 |
def main(audio_filepath, src_lang, tgt_lang, pnc):
|
259 |
translated = transcribe(audio_filepath, src_lang, tgt_lang, pnc)
|
260 |
answer = llm_pipe(translated, **generation_args)
|
261 |
+
# return [answer[0]['generated_text'], 'audio_out.mp3']
|
262 |
+
return 'audio_out.mp3'
|
263 |
|
264 |
|
265 |
|