TRACES commited on
Commit
02ff828
·
1 Parent(s): 4b37cf6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -135,16 +135,16 @@ if st.session_state.agree:
135
  str(round(st.session_state.bert_disinfo_result[0]['score'] * 100, 2)) +
136
  content['bert_no_2'][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="✅")
 
135
  str(round(st.session_state.bert_disinfo_result[0]['score'] * 100, 2)) +
136
  content['bert_no_2'][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(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="✅")