Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ def predict(text, speaker):
|
|
26 |
if len(text.strip()) == 0:
|
27 |
return (16000, np.zeros(0).astype(np.int16))
|
28 |
|
29 |
-
|
|
|
30 |
|
31 |
# limit input length
|
32 |
input_ids = inputs["input_ids"]
|
|
|
26 |
if len(text.strip()) == 0:
|
27 |
return (16000, np.zeros(0).astype(np.int16))
|
28 |
|
29 |
+
text = getNews ()
|
30 |
+
inputs = processor(text=text, return_tensors="pt")
|
31 |
|
32 |
# limit input length
|
33 |
input_ids = inputs["input_ids"]
|