Update app.py
Browse files
app.py
CHANGED
@@ -164,6 +164,9 @@ st.title("Youth Spirit Artworks Chatbot")
|
|
164 |
if "messages" not in st.session_state:
|
165 |
st.session_state.messages = []
|
166 |
|
|
|
|
|
|
|
167 |
init_messages = {
|
168 |
"About YSA": ''' a ''',
|
169 |
|
@@ -185,7 +188,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
|
189 |
st.write("True")
|
190 |
else:
|
191 |
st.write("False")
|
|
|
164 |
if "messages" not in st.session_state:
|
165 |
st.session_state.messages = []
|
166 |
|
167 |
+
if "curr_database" not in st.session_state:
|
168 |
+
st.session_state.curr_database = None
|
169 |
+
|
170 |
init_messages = {
|
171 |
"About YSA": ''' a ''',
|
172 |
|
|
|
188 |
metadatas=[{"type": "support"} for _ in range(0, L)],
|
189 |
)
|
190 |
db=collection
|
191 |
+
if st.session_state.curr_database == dataset:
|
192 |
st.write("True")
|
193 |
else:
|
194 |
st.write("False")
|