mehmet0001 commited on
Commit
5b1fcd8
·
verified ·
1 Parent(s): 8d8044c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,7 +24,7 @@ if st.session_state.stage == "crawl-input":
24
  config = st.text_area("Enter the start URL and the limit of crawling (in this format : URL,limit):")
25
  config_btn = st.button("Start crawling!")
26
 
27
- if config and config_btn:
28
  start = config.split(",")[0]
29
  limit = int(config.split(",")[1])
30
 
@@ -32,7 +32,6 @@ if st.session_state.stage == "crawl-input":
32
  st.session_state.collection = create_database.create_database(txt)
33
  st.write("Crawling is done.")
34
  st.session_state.stage = "remove-crawl"
35
- break
36
 
37
  if st.session_state.stage == "prompt-input":
38
  prompt = st.text_area("Ask the documentation a question :")
 
24
  config = st.text_area("Enter the start URL and the limit of crawling (in this format : URL,limit):")
25
  config_btn = st.button("Start crawling!")
26
 
27
+ if config and config_btn and not st.session_state.stage == "remove-crawl":
28
  start = config.split(",")[0]
29
  limit = int(config.split(",")[1])
30
 
 
32
  st.session_state.collection = create_database.create_database(txt)
33
  st.write("Crawling is done.")
34
  st.session_state.stage = "remove-crawl"
 
35
 
36
  if st.session_state.stage == "prompt-input":
37
  prompt = st.text_area("Ask the documentation a question :")