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