Baghdad99 commited on
Commit
a99bdb2
·
1 Parent(s): 72632b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", padding=True)
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')