aalkaswan commited on
Commit
2c95677
Β·
1 Parent(s): 0782712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def greet(name):
10
  model = SetFitModel.from_pretrained("dvilasuero/setfit-mini-imdb")
11
 
12
  def classify(text):
13
- return model(text)
14
 
15
  iface = gr.Interface(fn=classify, inputs="text", outputs="text")
16
  iface.launch()
 
10
  model = SetFitModel.from_pretrained("dvilasuero/setfit-mini-imdb")
11
 
12
  def classify(text):
13
+ return model([text])[0]
14
 
15
  iface = gr.Interface(fn=classify, inputs="text", outputs="text")
16
  iface.launch()