theekshanamadumal
commited on
Commit
·
dc9fb5d
1
Parent(s):
984bb90
title sub header
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def visualize(url):
|
|
| 21 |
with st.spinner("loading website data ..."):
|
| 22 |
# innerHTML = get_innerHTML(url)
|
| 23 |
html_image, html_content = take_webdata(url)
|
|
|
|
| 24 |
if html_content:
|
| 25 |
st.info(html_content)
|
| 26 |
else:
|
|
@@ -30,8 +31,7 @@ def visualize(url):
|
|
| 30 |
st.image(html_image)
|
| 31 |
else:
|
| 32 |
st.error("Error: empty html preview")
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
except Exception as e:
|
| 37 |
st.error(f"Error: {e}")
|
|
|
|
| 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:
|
|
|
|
| 31 |
st.image(html_image)
|
| 32 |
else:
|
| 33 |
st.error("Error: empty html preview")
|
| 34 |
+
|
|
|
|
| 35 |
|
| 36 |
except Exception as e:
|
| 37 |
st.error(f"Error: {e}")
|