Sreekannan commited on
Commit
42af022
1 Parent(s): 73d39a1

Update emotion_analysis.py

Browse files
Files changed (1) hide show
  1. emotion_analysis.py +1 -1
emotion_analysis.py CHANGED
@@ -14,4 +14,4 @@ def get_emotion(text):
14
  print("The detected emotion is:", emotion_detail)
15
  confidence_score = str(round([item['score'] for item in emotion_labels][0]*100, 2)) + "%"
16
  print("The confidence score is:", confidence_score)
17
- return emotion_detail[0], confidence_score
 
14
  print("The detected emotion is:", emotion_detail)
15
  confidence_score = str(round([item['score'] for item in emotion_labels][0]*100, 2)) + "%"
16
  print("The confidence score is:", confidence_score)
17
+ return emotion_detail, confidence_score