youngshen commited on
Commit
ca1f196
โ€ข
1 Parent(s): a287ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- inputs = processor(text=getNews(Interest),
34
- return_tensors="pt")
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