mehmet0001 commited on
Commit
f5ca240
·
verified ·
1 Parent(s): 50916a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -19,7 +19,7 @@ if not "stage" in st.session_state:
19
  elif st.session_state.stage == "remove-crawl-input-widgets":
20
  st.session_state.stage = "prompt-input"
21
 
22
- for i in range(1):
23
  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!")
@@ -32,7 +32,9 @@ for i in range(1):
32
  st.session_state.collection = create_database.create_database(txt)
33
  st.write("Crawling is done.")
34
  st.session_state.stage = "remove-crawl-input-widgets"
35
- break
 
 
36
 
37
  if st.session_state.stage == "prompt-input":
38
  prompt = st.text_area("Ask the documentation a question :")
 
19
  elif st.session_state.stage == "remove-crawl-input-widgets":
20
  st.session_state.stage = "prompt-input"
21
 
22
+ def get_crawl_input():
23
  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!")
 
32
  st.session_state.collection = create_database.create_database(txt)
33
  st.write("Crawling is done.")
34
  st.session_state.stage = "remove-crawl-input-widgets"
35
+ return
36
+
37
+ get_crawl_input()
38
 
39
  if st.session_state.stage == "prompt-input":
40
  prompt = st.text_area("Ask the documentation a question :")