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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,12 +19,12 @@ 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
- while True:
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!")
26
 
27
- if not (st.session_state.stage == "remove-crawl") and config and config_btn:
28
  start = config.split(",")[0]
29
  limit = int(config.split(",")[1])
30
 
 
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!")
26
 
27
+ if config and config_btn:
28
  start = config.split(",")[0]
29
  limit = int(config.split(",")[1])
30