TRACES commited on
Commit
12ce985
·
1 Parent(s): b3d0e95

Fix initial condition

Browse files
Files changed (1) hide show
  1. main.py +5 -3
main.py CHANGED
@@ -44,9 +44,11 @@ def switch_lang(lang):
44
  if 'lang' not in st.session_state:
45
  st.session_state.lang = 'bg'
46
 
47
- if 'gpt_detector_result' not in st.session_state \
48
- and 'untrue_detector_result' not in st.session_state and \
49
- and 'bert_result' not in st.session_state:
 
 
50
  st.session_state.gpt_detector_result = ''
51
  st.session_state.gpt_detector_probability = [1, 0]
52
 
 
44
  if 'lang' not in st.session_state:
45
  st.session_state.lang = 'bg'
46
 
47
+ if all([
48
+ 'gpt_detector_result' not in st.session_state,
49
+ 'untrue_detector_result' not in st.session_state,
50
+ 'bert_result' not in st.session_state
51
+ ])
52
  st.session_state.gpt_detector_result = ''
53
  st.session_state.gpt_detector_probability = [1, 0]
54