Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,12 +44,12 @@ html_content = None
|
|
44 |
@traceable(run_type="tool")
|
45 |
def html_content_input():
|
46 |
html_content = st.text_input("Paste the HTML tags of the item you want to extract:", max_chars=10000, help="example: <li>Product 1 </li>, watch the video above")
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
extract_button = html_content_input()
|
55 |
|
|
|
44 |
@traceable(run_type="tool")
|
45 |
def html_content_input():
|
46 |
html_content = st.text_input("Paste the HTML tags of the item you want to extract:", max_chars=10000, help="example: <li>Product 1 </li>, watch the video above")
|
47 |
+
if html_content:
|
48 |
+
if html_content.startswith("http"):
|
49 |
+
st.write("Please paste the HTML piece code, not the URL")
|
50 |
+
html_content = None
|
51 |
+
|
52 |
+
return st.button("Generate output format & code")
|
53 |
|
54 |
extract_button = html_content_input()
|
55 |
|