MikeJeong commited on
Commit
29363e5
1 Parent(s): 7874721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ def predict(model, txt):
31
  elif model == "cardiffnlp/twitter-roberta-base-sentiment-latest":
32
  rob_res = pipe_roberta(txt)[0]
33
  label_dict = {
34
- "Neutral": 0,
35
- "Negative": 1,
36
- "Positive": -1
37
  }
38
  label = label_dict[rob_res['label']]
39
  score = rob_res['score']
 
31
  elif model == "cardiffnlp/twitter-roberta-base-sentiment-latest":
32
  rob_res = pipe_roberta(txt)[0]
33
  label_dict = {
34
+ "neutral": 0,
35
+ "negative": 1,
36
+ "positive": -1
37
  }
38
  label = label_dict[rob_res['label']]
39
  score = rob_res['score']