Spaces:
Runtime error
Runtime error
check for url
Browse files
app.py
CHANGED
@@ -36,6 +36,11 @@ else:
|
|
36 |
|
37 |
|
38 |
html_content = st.text_input("Paste your piece of HTML here:", max_chars=10000)
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
extract_button = st.button("Extract data format")
|
41 |
|
|
|
36 |
|
37 |
|
38 |
html_content = st.text_input("Paste your piece of HTML here:", max_chars=10000)
|
39 |
+
# check if html_content is an url, and show error if it is
|
40 |
+
if html_content:
|
41 |
+
if html_content.startswith("http"):
|
42 |
+
st.write("Please paste the HTML piece code, not the URL")
|
43 |
+
html_content = None
|
44 |
|
45 |
extract_button = st.button("Extract data format")
|
46 |
|