youngshen commited on
Commit
629b79e
·
verified ·
1 Parent(s): 27a58ec

Update app.py

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