Spaces:
Runtime error
Runtime error
Commit
·
c47952b
1
Parent(s):
7aa9315
Update app.py
Browse files
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():
|