TRACES commited on
Commit
f733e13
1 Parent(s): 23755c7

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
  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)) +
 
137
  content['bert_no_2'][st.session_state.lang], icon="✅")
138
 
139
  if st.session_state.emotions_result[0]['score'] < 0.97:
140
+ st.warning(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.info(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)) +