Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,31 @@ import plotly.express as px
|
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import cosine_similarity
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Streamlit app header
|
11 |
st.title("MetaDiscovery Agent for Library of Congress Collections")
|
12 |
st.markdown("""
|
|
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import cosine_similarity
|
9 |
|
10 |
+
# Custom CSS for white background, styled sidebar, and optional banner
|
11 |
+
st.markdown("""
|
12 |
+
<style>
|
13 |
+
.main {
|
14 |
+
background-color: white !important;
|
15 |
+
}
|
16 |
+
.block-container {
|
17 |
+
background-color: white !important;
|
18 |
+
}
|
19 |
+
section[data-testid="stSidebar"] > div:first-child {
|
20 |
+
background-color: #f8f9fa !important;
|
21 |
+
padding: 1rem;
|
22 |
+
border-radius: 0.5rem;
|
23 |
+
}
|
24 |
+
img.banner {
|
25 |
+
width: 100%;
|
26 |
+
border-radius: 12px;
|
27 |
+
margin-bottom: 1rem;
|
28 |
+
}
|
29 |
+
</style>
|
30 |
+
""", unsafe_allow_html=True)
|
31 |
+
|
32 |
+
# Optional: Add a banner image (replace with your image URL)
|
33 |
+
st.markdown('<img src="https://www.loc.gov/static/images/home/home-header.jpg" class="banner">', unsafe_allow_html=True)
|
34 |
+
|
35 |
# Streamlit app header
|
36 |
st.title("MetaDiscovery Agent for Library of Congress Collections")
|
37 |
st.markdown("""
|