usmanyousaf commited on
Commit
f560e5e
β€’
1 Parent(s): a35d10c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,8 +1,8 @@
1
- import streamlit as st # type: ignore
2
  from scrape import scrape_website, extract_body_content, clean_body_content, split_dom_content
3
- from parse_utils import parse_with_groq # Updated to 'parse_utils'
4
 
5
- # Streamlit UI with sidebar configuration
6
  st.set_page_config(page_title="AI Web Scraping App", page_icon="🌐")
7
 
8
  st.sidebar.title("πŸš€ Model Selection")
@@ -17,7 +17,7 @@ selected_model = st.sidebar.selectbox(
17
  ]
18
  )
19
 
20
- # Application title and description
21
  st.title("AI Web Scraper App 🌐")
22
  st.write("Easily scrape and analyze web content using advanced AI models. 🌟")
23
 
@@ -54,7 +54,7 @@ if "dom_content" in st.session_state:
54
  parsed_result = parse_with_groq(dom_chunks, parse_description, model=selected_model)
55
  st.write(parsed_result)
56
 
57
- # Custom CSS for footer at the bottom of the sidebar
58
  st.markdown(
59
  """
60
  <style>
 
1
+ import streamlit as st # type: ignore
2
  from scrape import scrape_website, extract_body_content, clean_body_content, split_dom_content
3
+ from parse import parse_with_groq
4
 
5
+ # Streamlit UI with sidebar
6
  st.set_page_config(page_title="AI Web Scraping App", page_icon="🌐")
7
 
8
  st.sidebar.title("πŸš€ Model Selection")
 
17
  ]
18
  )
19
 
20
+ # Application title
21
  st.title("AI Web Scraper App 🌐")
22
  st.write("Easily scrape and analyze web content using advanced AI models. 🌟")
23
 
 
54
  parsed_result = parse_with_groq(dom_chunks, parse_description, model=selected_model)
55
  st.write(parsed_result)
56
 
57
+ # CSS for footer at the bottom of the sidebar
58
  st.markdown(
59
  """
60
  <style>