KeshavRa commited on
Commit
a118f95
·
verified ·
1 Parent(s): ebb55c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -185,7 +185,7 @@ with st.spinner("Loading, please be patient with us ... 🙏"):
185
  metadatas=[{"type": "support"} for _ in range(0, L)],
186
  )
187
  db=collection
188
- if curr_database:
189
  st.write("True")
190
  else:
191
  st.write("False")
@@ -194,7 +194,7 @@ with st.spinner("Loading, please be patient with us ... 🙏"):
194
  # st.session_state.messages.append({"role": "assistant", "content": init_message})
195
 
196
  # Current database variable
197
- curr_database = collection
198
 
199
  # Display chat messages from history on app rerun
200
  for message in st.session_state.messages:
 
185
  metadatas=[{"type": "support"} for _ in range(0, L)],
186
  )
187
  db=collection
188
+ if (curr_database in st.session_state) & (st.session_state.curr_database == dataset):
189
  st.write("True")
190
  else:
191
  st.write("False")
 
194
  # st.session_state.messages.append({"role": "assistant", "content": init_message})
195
 
196
  # Current database variable
197
+ st.session_state.curr_database = dataset
198
 
199
  # Display chat messages from history on app rerun
200
  for message in st.session_state.messages: