Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,9 @@ def get_prediction(model_id):
|
|
| 21 |
|
| 22 |
def predict(review):
|
| 23 |
prediction = classifier(review)
|
| 24 |
-
|
| 25 |
-
label =
|
| 26 |
-
score = 100*
|
| 27 |
return (label, score)
|
| 28 |
return predict
|
| 29 |
|
|
|
|
| 21 |
|
| 22 |
def predict(review):
|
| 23 |
prediction = classifier(review)
|
| 24 |
+
pred = print(prediction)
|
| 25 |
+
label = pred[:]['label']
|
| 26 |
+
score = 100*pre[:]['score']
|
| 27 |
return (label, score)
|
| 28 |
return predict
|
| 29 |
|