Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def translate_speech(audio):
|
|
28 |
return
|
29 |
|
30 |
# Use the translation pipeline to translate the transcription
|
31 |
-
translated_text = translator(transcription, return_tensors="pt"
|
32 |
|
33 |
# Use the text-to-speech pipeline to synthesize the translated text
|
34 |
synthesised_speech = tts(translated_text, return_tensors='pt')
|
|
|
28 |
return
|
29 |
|
30 |
# Use the translation pipeline to translate the transcription
|
31 |
+
translated_text = translator(transcription, return_tensors="pt")
|
32 |
|
33 |
# Use the text-to-speech pipeline to synthesize the translated text
|
34 |
synthesised_speech = tts(translated_text, return_tensors='pt')
|