neobot commited on
Commit
0e8504c
·
1 Parent(s): ec2ae5c

do not clear the state

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -142,9 +142,9 @@ query = st.text_input("What are you looking for?")
142
  # Create a button
143
  if st.button('Submit'):
144
 
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)
 
142
  # Create a button
143
  if st.button('Submit'):
144
 
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)