sintamar commited on
Commit
0b28b15
·
verified ·
1 Parent(s): 6b74d80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -20,17 +20,13 @@ def visualize(url):
20
  # Fetch and display the website content
21
  with st.spinner("loading website data ..."):
22
  # innerHTML = get_innerHTML(url)
23
- html_image, html_content = take_webdata(url)
24
  st.subheader("Website title:")
25
  if html_content:
26
  st.info(html_content)
 
27
  else:
28
  st.error("Error: empty html content")
29
- st.subheader("Website preview:")
30
- if html_image:
31
- st.image(html_image)
32
- else:
33
- st.error("Error: empty html preview")
34
 
35
 
36
  except Exception as e:
 
20
  # Fetch and display the website content
21
  with st.spinner("loading website data ..."):
22
  # innerHTML = get_innerHTML(url)
23
+ html_content = take_webdata(url)
24
  st.subheader("Website title:")
25
  if html_content:
26
  st.info(html_content)
27
+
28
  else:
29
  st.error("Error: empty html content")
 
 
 
 
 
30
 
31
 
32
  except Exception as e: