Baghdad99 commited on
Commit
6b1800d
·
1 Parent(s): a99bdb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def translate_speech(audio):
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')
35
 
36
  # Define the max_range variable
37
  max_range = 32767 # You can adjust this value based on your requirements
 
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)
35
 
36
  # Define the max_range variable
37
  max_range = 32767 # You can adjust this value based on your requirements