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

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -137,18 +137,18 @@ 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.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.success(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)) +
151
- content['emotions_label_3'][st.session_state.lang], icon="✅")
152
 
153
 
154
  st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")
 
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)) +
151
+ content['emotions_label_3'][st.session_state.lang])
152
 
153
 
154
  st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")