khaerens commited on
Commit
746bea5
·
1 Parent(s): af1593d
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -28,7 +28,8 @@ free_text_state_variables = {
28
 
29
  def wiki_init_state_variables():
30
  for k in free_text_state_variables.keys():
31
- del st.session_state[k]
 
32
 
33
  for k, v in wiki_state_variables.items():
34
  if k not in st.session_state:
@@ -108,7 +109,8 @@ def free_text_layout():
108
 
109
  def free_test_init_state_variables():
110
  for k in wiki_state_variables.keys():
111
- del st.session_state[k]
 
112
 
113
  for k, v in free_text_state_variables.items():
114
  if k not in st.session_state:
 
28
 
29
  def wiki_init_state_variables():
30
  for k in free_text_state_variables.keys():
31
+ if k in st.session_state:
32
+ del st.session_state[k]
33
 
34
  for k, v in wiki_state_variables.items():
35
  if k not in st.session_state:
 
109
 
110
  def free_test_init_state_variables():
111
  for k in wiki_state_variables.keys():
112
+ if k in st.session_state:
113
+ del st.session_state[k]
114
 
115
  for k, v in free_text_state_variables.items():
116
  if k not in st.session_state: