Spaces:
Running
Running
do not clear the state
Browse files
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)
|