leavoigt commited on
Commit
09e0297
1 Parent(s): 6e89faf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ group_dict = {
39
 
40
  # Define prediction function
41
  def predict(text):
42
- preds = model([text])[0].item()
43
  return group_dict[preds]
44
 
45
  # App
 
39
 
40
  # Define prediction function
41
  def predict(text):
42
+ preds = model(text)
43
  return group_dict[preds]
44
 
45
  # App