Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import streamlit as st
|
|
6 |
import plotly.express as px
|
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, banner, and dark grey font
|
11 |
st.markdown("""
|
@@ -36,7 +37,7 @@ st.markdown("""
|
|
36 |
}
|
37 |
.stAlert {
|
38 |
background-color: #f0f0f5 !important;
|
39 |
-
color: #
|
40 |
padding: 1.25rem !important;
|
41 |
font-size: 1rem !important;
|
42 |
border-radius: 0.5rem !important;
|
@@ -47,7 +48,7 @@ st.markdown("""
|
|
47 |
}
|
48 |
section[data-testid="stSidebar"] > div:first-child {
|
49 |
background-color: #1A1A1A !important;
|
50 |
-
color: #
|
51 |
padding: 2rem 1.5rem 1.5rem 1.5rem !important;
|
52 |
border-radius: 12px;
|
53 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
@@ -67,8 +68,13 @@ st.markdown("""
|
|
67 |
</style>
|
68 |
""", unsafe_allow_html=True)
|
69 |
|
70 |
-
#
|
71 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
# Streamlit app header
|
74 |
st.title("MetaDiscovery Agent for Library of Congress Collections")
|
|
|
6 |
import plotly.express as px
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import cosine_similarity
|
9 |
+
import os
|
10 |
|
11 |
# Custom CSS for white background, styled sidebar, banner, and dark grey font
|
12 |
st.markdown("""
|
|
|
37 |
}
|
38 |
.stAlert {
|
39 |
background-color: #f0f0f5 !important;
|
40 |
+
color: #333333 !important;
|
41 |
padding: 1.25rem !important;
|
42 |
font-size: 1rem !important;
|
43 |
border-radius: 0.5rem !important;
|
|
|
48 |
}
|
49 |
section[data-testid="stSidebar"] > div:first-child {
|
50 |
background-color: #1A1A1A !important;
|
51 |
+
color: #FFFFFF !important;
|
52 |
padding: 2rem 1.5rem 1.5rem 1.5rem !important;
|
53 |
border-radius: 12px;
|
54 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
|
68 |
</style>
|
69 |
""", unsafe_allow_html=True)
|
70 |
|
71 |
+
# Instead of using an image file that might not exist, create a header with HTML
|
72 |
+
st.markdown("""
|
73 |
+
<div style="background-color: #1A1A1A; padding: 20px; border-radius: 10px; margin-bottom: 20px;">
|
74 |
+
<h1 style="color: white; text-align: center;">LOC MetaDiscovery Agent</h1>
|
75 |
+
<p style="color: #D3D3D3; text-align: center;">Library of Congress Collections Analysis Tool</p>
|
76 |
+
</div>
|
77 |
+
""", unsafe_allow_html=True)
|
78 |
|
79 |
# Streamlit app header
|
80 |
st.title("MetaDiscovery Agent for Library of Congress Collections")
|