GianJSX commited on
Commit
ae663ee
1 Parent(s): 014a1d9

check for url

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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