Spaces:
Runtime error
Runtime error
fix MMS generation
Browse files
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
|
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 |
|