Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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
|
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 |
|