Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def translate(audio):
|
|
26 |
|
27 |
def synthesise(text):
|
28 |
inputs = tokenizer(text=text, return_tensors="pt")
|
29 |
-
|
30 |
with torch.no_grad():
|
31 |
speech = model(**inputs).waveform
|
32 |
print('here')
|
|
|
26 |
|
27 |
def synthesise(text):
|
28 |
inputs = tokenizer(text=text, return_tensors="pt")
|
29 |
+
inputs['input_ids'] = inputs['input_ids'].long()
|
30 |
with torch.no_grad():
|
31 |
speech = model(**inputs).waveform
|
32 |
print('here')
|