Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def tts(text):
|
|
22 |
if len(text.strip()) == 0:
|
23 |
return (16000, np.zeros(0).astype(np.int16))
|
24 |
|
25 |
-
inputs =
|
26 |
|
27 |
# limit input length
|
28 |
input_ids = inputs["input_ids"]
|
|
|
22 |
if len(text.strip()) == 0:
|
23 |
return (16000, np.zeros(0).astype(np.int16))
|
24 |
|
25 |
+
inputs = tts_processor(text=text, return_tensors="pt")
|
26 |
|
27 |
# limit input length
|
28 |
input_ids = inputs["input_ids"]
|