deeplearningwithpython5240 commited on
Commit
901b59e
·
verified ·
1 Parent(s): 3ba8d69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -58,6 +58,9 @@ def emotion_classification(translated_data):
58
  negative_dict = {}
59
  for i in translated_data:
60
  labelled_result = emo_pipe(i)[0]['label']
 
 
 
61
  if labelled_result == 'negative':
62
  negative_dict[i] = emo_pipe(i)[0]['score']
63
  negative_count += 1
 
58
  negative_dict = {}
59
  for i in translated_data:
60
  labelled_result = emo_pipe(i)[0]['label']
61
+ st.write('Text: ',i)
62
+ st.write('Label: ',labelled_result)
63
+ st.write(' ')
64
  if labelled_result == 'negative':
65
  negative_dict[i] = emo_pipe(i)[0]['score']
66
  negative_count += 1