Barani1-t commited on
Commit
d7e755b
·
1 Parent(s): 7e3558a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def synthesise(text):
45
  input_ids = inputs["input_ids"]
46
  with torch.no_grad():
47
  outputs = model_mms(input_ids)
48
- return speech = outputs["waveform"]
 
49
 
50
  def speech_to_speech_translation(audio):
51
  sampling_rate = 16000
 
45
  input_ids = inputs["input_ids"]
46
  with torch.no_grad():
47
  outputs = model_mms(input_ids)
48
+ speech = outputs["waveform"]
49
+ return speech
50
 
51
  def speech_to_speech_translation(audio):
52
  sampling_rate = 16000