Preetham04 commited on
Commit
d263e6c
1 Parent(s): d357fb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ def predict(input_text):
9
  for p in predictions:
10
  review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
11
  result.append({
12
- "review": review,
13
- "score": p["score"]
14
  })
15
  return result
16
 
 
9
  for p in predictions:
10
  review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
11
  result.append({
12
+ "SENTIMENT": review,
13
+ "SCORE": p["score"]
14
  })
15
  return result
16