sparrow8i8 commited on
Commit
149f203
·
1 Parent(s): 14b7f46

changed image to text

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ learn=load_learner('model.pkl')
7
 
8
  categories=('negative','positive')
9
 
10
- def classify(img):
11
- pred,idx,probs=learn.predict(img)
12
  return dict(zip(categories, map(float,probs)))
13
 
14
  examples=['This was a very though provoking movie and very well written']
 
7
 
8
  categories=('negative','positive')
9
 
10
+ def classify(text):
11
+ pred,idx,probs=learn.predict(text)
12
  return dict(zip(categories, map(float,probs)))
13
 
14
  examples=['This was a very though provoking movie and very well written']