Spaces:
Starting
on
T4
Starting
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -585,22 +585,8 @@ if __name__ == '__main__':
|
|
585 |
packed_bytes = msgpack.packb(conversations, use_bin_type=True)
|
586 |
fp.write(packed_bytes)
|
587 |
|
588 |
-
|
589 |
-
|
590 |
-
main_thread = threading.main_thread()
|
591 |
-
while True:
|
592 |
-
L = threading.enumerate()
|
593 |
-
L.remove(main_thread)
|
594 |
-
for t in L:
|
595 |
-
t.join()
|
596 |
-
@st.dialog('Documents Ingested !')
|
597 |
-
def documents_ingested():
|
598 |
-
main_thread = threading.main_thread()
|
599 |
-
while True:
|
600 |
-
L = threading.enumerate()
|
601 |
-
L.remove(main_thread)
|
602 |
-
for t in L:
|
603 |
-
t.join()
|
604 |
|
605 |
with st.sidebar:
|
606 |
st.divider()
|
|
|
585 |
packed_bytes = msgpack.packb(conversations, use_bin_type=True)
|
586 |
fp.write(packed_bytes)
|
587 |
|
588 |
+
if "dialog_open" not in st.session_state:
|
589 |
+
st.session_state.dialog_open = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
|
591 |
with st.sidebar:
|
592 |
st.divider()
|