Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -137,14 +137,14 @@ if st.session_state.agree:
|
|
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="✅")
|
|
|
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(round(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(round(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="✅")
|