Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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
|