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