devve1 commited on
Commit
0a94e04
1 Parent(s): eb42954

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -16
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
- @st.dialog('URL Ingested !')
589
- def url_ingested():
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()