Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -135,16 +135,16 @@ if st.session_state.agree:
|
|
135 |
str(round(st.session_state.bert_disinfo_result[0]['score'] * 100, 2)) +
|
136 |
content['bert_no_2'][st.session_state.lang], icon="✅")
|
137 |
|
138 |
-
if st.session_state.emotions_result[0]['score'] < 0.97:
|
139 |
st.warning(content['emotions_label_1'][st.session_state.lang] +
|
140 |
-
str(
|
141 |
content['emotions_label_2'][st.session_state.lang] +
|
142 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
143 |
content['emotions_label_3'][st.session_state.lang] +
|
144 |
content['emotions_label_4'][st.session_state.lang], icon = "⚠️")
|
145 |
else:
|
146 |
st.success(content['emotions_label_1'][st.session_state.lang] +
|
147 |
-
str(
|
148 |
content['emotions_label_2'][st.session_state.lang] +
|
149 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
150 |
content['emotions_label_3'][st.session_state.lang], icon="✅")
|
|
|
135 |
str(round(st.session_state.bert_disinfo_result[0]['score'] * 100, 2)) +
|
136 |
content['bert_no_2'][st.session_state.lang], icon="✅")
|
137 |
|
138 |
+
if st.session_state.emotions_result[0]['score'] < '0.97':
|
139 |
st.warning(content['emotions_label_1'][st.session_state.lang] +
|
140 |
+
str(st.session_state.emotions_result[0]['label']) +
|
141 |
content['emotions_label_2'][st.session_state.lang] +
|
142 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
143 |
content['emotions_label_3'][st.session_state.lang] +
|
144 |
content['emotions_label_4'][st.session_state.lang], icon = "⚠️")
|
145 |
else:
|
146 |
st.success(content['emotions_label_1'][st.session_state.lang] +
|
147 |
+
str(st.session_state.emotions_result[0]['label']) +
|
148 |
content['emotions_label_2'][st.session_state.lang] +
|
149 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
150 |
content['emotions_label_3'][st.session_state.lang], icon="✅")
|