douglasgoodwin commited on
Commit
3d599e6
·
verified ·
1 Parent(s): 294f763
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,9 +17,11 @@ def classify_emotion(text):
17
  # Update the dictionary with the scores returned by the model
18
  for item in predictions:
19
  iscore = float(item["score"])
 
20
  if iscore < 1.0:
21
  iscore = iscore*10.0
22
-
 
23
  emotion_scores[item["label"]] = iscore
24
 
25
  return emotion_scores
 
17
  # Update the dictionary with the scores returned by the model
18
  for item in predictions:
19
  iscore = float(item["score"])
20
+ print(f"iscore is {iscore}")
21
  if iscore < 1.0:
22
  iscore = iscore*10.0
23
+
24
+ print(f"iscore for {item["label"]} is now {iscore}")
25
  emotion_scores[item["label"]] = iscore
26
 
27
  return emotion_scores