veluchs commited on
Commit
617fdb5
1 Parent(s): c3b5fca

fix MMS generation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def translate(audio):
23
 
24
  def synthesise(text):
25
  inputs = tokenizer(text=text, return_tensors="pt")
26
- speech_output = model.generate_speech(inputs["input_ids"].to(device))
27
  speech = speech_output.audio[0]
28
  return speech.cpu()
29
 
 
23
 
24
  def synthesise(text):
25
  inputs = tokenizer(text=text, return_tensors="pt")
26
+ speech_output = model(inputs["input_ids"].to(device))
27
  speech = speech_output.audio[0]
28
  return speech.cpu()
29