heisenberg3376
commited on
Commit
•
c9dc5f3
1
Parent(s):
9307dab
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def translate(audio):
|
|
23 |
|
24 |
|
25 |
def synthesise(text):
|
26 |
-
inputs =
|
27 |
speech = model(inputs["input_ids"].to(device))
|
28 |
return speech.cpu()
|
29 |
|
|
|
23 |
|
24 |
|
25 |
def synthesise(text):
|
26 |
+
inputs = tokenizer(text=text, return_tensors="pt")
|
27 |
speech = model(inputs["input_ids"].to(device))
|
28 |
return speech.cpu()
|
29 |
|