TRACES commited on
Commit
4b37cf6
·
1 Parent(s): 0b4e51e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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="✅")