Lord-Raven commited on
Commit
374cec5
·
1 Parent(s): bdd14b5

Trying to fix parameter issue.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ classifier = pipeline(
17
  function_to_apply="sigmoid", # optional as is the default for the task
18
  )
19
 
20
- def predict(text):
21
- return classifier(text)
22
 
23
  demo = gr.Interface(
24
  fn = predict,
 
17
  function_to_apply="sigmoid", # optional as is the default for the task
18
  )
19
 
20
+ def predict(param_0):
21
+ return classifier(param_0)
22
 
23
  demo = gr.Interface(
24
  fn = predict,