Spaces:
Sleeping
Sleeping
LordFarquaad42
commited on
Commit
·
aed7dfe
1
Parent(s):
82732e7
final attempt at making onclick hide add_data div
Browse files- pages/ragChat.py +4 -1
pages/ragChat.py
CHANGED
@@ -41,6 +41,7 @@ async def add_data():
|
|
41 |
|
42 |
st.success("Data is ready to be queried!")
|
43 |
st.session_state.data_hungry = False
|
|
|
44 |
|
45 |
|
46 |
async def rag_chat():
|
@@ -93,7 +94,9 @@ async def rag_chat():
|
|
93 |
|
94 |
async def main():
|
95 |
if st.session_state.data_hungry:
|
96 |
-
|
|
|
|
|
97 |
else:
|
98 |
await rag_chat()
|
99 |
|
|
|
41 |
|
42 |
st.success("Data is ready to be queried!")
|
43 |
st.session_state.data_hungry = False
|
44 |
+
return False
|
45 |
|
46 |
|
47 |
async def rag_chat():
|
|
|
94 |
|
95 |
async def main():
|
96 |
if st.session_state.data_hungry:
|
97 |
+
st.session_state.data_hungry = (
|
98 |
+
await add_data()
|
99 |
+
)
|
100 |
else:
|
101 |
await rag_chat()
|
102 |
|