GianJSX commited on
Commit
5a6cb7b
·
1 Parent(s): 7cba56b

Update app.py

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