Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,10 +29,10 @@ def predict(text, speaker):
|
|
29 |
if len(text.strip()) == 0:
|
30 |
return (16000, np.zeros(0).astype(np.int16))
|
31 |
|
32 |
-
if Interest == "":
|
33 |
-
|
34 |
-
|
35 |
-
else:
|
36 |
inputs = processor(text=getNews(text),
|
37 |
return_tensors="pt")
|
38 |
|
|
|
29 |
if len(text.strip()) == 0:
|
30 |
return (16000, np.zeros(0).astype(np.int16))
|
31 |
|
32 |
+
#if Interest == "":
|
33 |
+
# inputs = processor(text=getNews(Interest),
|
34 |
+
# return_tensors="pt")
|
35 |
+
#else:
|
36 |
inputs = processor(text=getNews(text),
|
37 |
return_tensors="pt")
|
38 |
|