CK42 commited on
Commit
534efde
1 Parent(s): a80e063

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,9 +21,9 @@ def get_prediction(model_id):
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
 
 
21
 
22
  def predict(review):
23
  prediction = classifier(review)
24
+ print(prediction)
25
+ label = prediction[]['label']
26
+ score = 100*prediction[]['score']
27
  return (label, score)
28
  return predict
29