Spaces:
Running
Running
usmanyousaf
commited on
Commit
β’
f560e5e
1
Parent(s):
a35d10c
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
import streamlit as st
|
2 |
from scrape import scrape_website, extract_body_content, clean_body_content, split_dom_content
|
3 |
-
from
|
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,7 +17,7 @@ selected_model = st.sidebar.selectbox(
|
|
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,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 |
-
#
|
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>
|