youngshen commited on
Commit
a4591c0
·
verified ·
1 Parent(s): a19b34c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def predict(text, speaker, preset):
32
 
33
  # text = getNews ()
34
  # inputs = processor(text=text, return_tensors="pt")
35
- inputs = processor(text=getNews(preset), return_tensors="pt")
36
 
37
  # limit input length
38
  input_ids = inputs["input_ids"]
 
32
 
33
  # text = getNews ()
34
  # inputs = processor(text=text, return_tensors="pt")
35
+ inputs = processor(text=getNews(text), return_tensors="pt")
36
 
37
  # limit input length
38
  input_ids = inputs["input_ids"]