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