Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -137,18 +137,18 @@ if st.session_state.agree:
|
|
137 |
content['bert_no_2'][st.session_state.lang], icon="✅")
|
138 |
|
139 |
if st.session_state.emotions_result[0]['score'] < 0.97:
|
140 |
-
st.
|
141 |
str(st.session_state.emotions_result[0]['label']) +
|
142 |
content['emotions_label_2'][st.session_state.lang] +
|
143 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
144 |
content['emotions_label_3'][st.session_state.lang] +
|
145 |
content['emotions_label_4'][st.session_state.lang], icon = "⚠️")
|
146 |
else:
|
147 |
-
st.
|
148 |
str(st.session_state.emotions_result[0]['label']) +
|
149 |
content['emotions_label_2'][st.session_state.lang] +
|
150 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
151 |
-
content['emotions_label_3'][st.session_state.lang]
|
152 |
|
153 |
|
154 |
st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")
|
|
|
137 |
content['bert_no_2'][st.session_state.lang], icon="✅")
|
138 |
|
139 |
if st.session_state.emotions_result[0]['score'] < 0.97:
|
140 |
+
st.write(content['emotions_label_1'][st.session_state.lang] +
|
141 |
str(st.session_state.emotions_result[0]['label']) +
|
142 |
content['emotions_label_2'][st.session_state.lang] +
|
143 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
144 |
content['emotions_label_3'][st.session_state.lang] +
|
145 |
content['emotions_label_4'][st.session_state.lang], icon = "⚠️")
|
146 |
else:
|
147 |
+
st.write(content['emotions_label_1'][st.session_state.lang] +
|
148 |
str(st.session_state.emotions_result[0]['label']) +
|
149 |
content['emotions_label_2'][st.session_state.lang] +
|
150 |
str(round(st.session_state.emotions_result[0]['score'] * 100, 2)) +
|
151 |
+
content['emotions_label_3'][st.session_state.lang])
|
152 |
|
153 |
|
154 |
st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")
|