Update app.py
Browse files
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
|