jonathanjordan21 commited on
Commit
eb8f08c
·
verified ·
1 Parent(s): 953979f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from extract import take_webdata
3
  from PIL import Image
4
  from io import BytesIO
5
 
@@ -7,10 +7,10 @@ def main():
7
  st.title("Website Content Exctractor")
8
 
9
  # Get website URL from user input
10
- url = st.text_input("Enter a URL:", "")
11
  if st.button("Proceed"):
12
  if not url:
13
- st.warning("URL is empty.")
14
  else:
15
  visualize(url)
16
 
@@ -20,7 +20,8 @@ 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)
 
1
  import streamlit as st
2
+ from extract import take_webdata, get_vehicle_info
3
  from PIL import Image
4
  from io import BytesIO
5
 
 
7
  st.title("Website Content Exctractor")
8
 
9
  # Get website URL from user input
10
+ url = st.text_input("Masukkan Nopol:", "")
11
  if st.button("Proceed"):
12
  if not url:
13
+ st.warning("Nopol kosong.")
14
  else:
15
  visualize(url)
16
 
 
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
+ html_image, html_content = get_vehicle_info(url)
25
  st.subheader("Website title:")
26
  if html_content:
27
  st.info(html_content)