TRACES commited on
Commit
16ae58d
·
1 Parent(s): 133eca2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -48,9 +48,9 @@ if 'lang' not in st.session_state:
48
  st.session_state.lang = 'bg'
49
 
50
  if all([
51
- 'gpt_detector_result' not in st.session_state,
52
  'untrue_detector_result' not in st.session_state,
53
- 'bert_result' not in st.session_state
54
  ]):
55
  # st.session_state.gpt_detector_result = ''
56
  # st.session_state.gpt_detector_probability = [1, 0]
@@ -142,9 +142,9 @@ if st.session_state.agree:
142
  str(round(st.session_state.bert_gpt_result[0]['score'] * 100, 2)) +
143
  content['bert_gpt_2'][st.session_state.lang], icon = "⚠️")
144
  else:
145
- st.success(content['bert_no_1'][st.session_state.lang] +
146
  str(round(st.session_state.bert_gpt_result[0]['score'] * 100, 2)) +
147
- content['bert_no_2'][st.session_state.lang], icon="✅")
148
 
149
  st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")
150
 
 
48
  st.session_state.lang = 'bg'
49
 
50
  if all([
51
+ 'bert_gpt_result' not in st.session_state,
52
  'untrue_detector_result' not in st.session_state,
53
+ 'bert_disinfo_result' not in st.session_state
54
  ]):
55
  # st.session_state.gpt_detector_result = ''
56
  # st.session_state.gpt_detector_probability = [1, 0]
 
142
  str(round(st.session_state.bert_gpt_result[0]['score'] * 100, 2)) +
143
  content['bert_gpt_2'][st.session_state.lang], icon = "⚠️")
144
  else:
145
+ st.success(content['bert_human_1'][st.session_state.lang] +
146
  str(round(st.session_state.bert_gpt_result[0]['score'] * 100, 2)) +
147
+ content['bert_human_2'][st.session_state.lang], icon="✅")
148
 
149
  st.info(content['disinformation_definition'][st.session_state.lang], icon="ℹ️")
150