Spaces:
Runtime error
Runtime error
Update app.py
#1
by
sanchit-gandhi
HF staff
- opened
app.py
CHANGED
@@ -23,7 +23,7 @@ def translate(audio):
|
|
23 |
|
24 |
|
25 |
def synthesise(text):
|
26 |
-
inputs = tokenizer(
|
27 |
input_ids = inputs["input_ids"]
|
28 |
|
29 |
with torch.no_grad():
|
|
|
23 |
|
24 |
|
25 |
def synthesise(text):
|
26 |
+
inputs = tokenizer(text, return_tensors="pt")
|
27 |
input_ids = inputs["input_ids"]
|
28 |
|
29 |
with torch.no_grad():
|