Spaces:
Sleeping
Sleeping
Commit
·
149f203
1
Parent(s):
14b7f46
changed image to text
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ learn=load_learner('model.pkl')
|
|
7 |
|
8 |
categories=('negative','positive')
|
9 |
|
10 |
-
def classify(
|
11 |
-
pred,idx,probs=learn.predict(
|
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']
|