YongHuang commited on
Commit
7886e62
·
1 Parent(s): 0e8504c

clear partial session state

Browse files

st.session_state['count_checked'] = 0
st.session_state['checked_boxes'] = []

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -145,6 +145,8 @@ if st.button('Submit'):
145
  # # initialize
146
  # st.session_state.clear()
147
  # init_session_state()
 
 
148
 
149
  # ### call OpenAI text-embedding
150
  res = openai.Embedding.create(model=EMBEDDING_MODEL, input=[query], api_key=OPENAI_API_KEY)
 
145
  # # initialize
146
  # st.session_state.clear()
147
  # init_session_state()
148
+ st.session_state['count_checked'] = 0
149
+ st.session_state['checked_boxes'] = []
150
 
151
  # ### call OpenAI text-embedding
152
  res = openai.Embedding.create(model=EMBEDDING_MODEL, input=[query], api_key=OPENAI_API_KEY)