Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,19 @@ collections = {
|
|
98 |
# Sidebar for selecting collection
|
99 |
st.sidebar.markdown("## Settings")
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
# Add a key to the selectbox to ensure it refreshes properly
|
102 |
selected = st.sidebar.selectbox("Select a collection", list(collections.keys()), key="collection_selector")
|
103 |
search_query = collections[selected]
|
|
|
98 |
# Sidebar for selecting collection
|
99 |
st.sidebar.markdown("## Settings")
|
100 |
|
101 |
+
# Help / About Section
|
102 |
+
with st.sidebar.expander("ℹ️ About This Tool"):
|
103 |
+
st.markdown(
|
104 |
+
"This app analyzes metadata from Library of Congress digital collections. "
|
105 |
+
"It highlights completeness issues and suggests metadata enhancements using NLP."
|
106 |
+
)
|
107 |
+
|
108 |
+
# Display Summary Statistics if available
|
109 |
+
if 'metadata_df' in locals() and not metadata_df.empty:
|
110 |
+
st.sidebar.markdown("### 📊 Quick Stats")
|
111 |
+
st.sidebar.write(f"Total Records: {len(metadata_df)}")
|
112 |
+
st.sidebar.write(f"Incomplete Records: {len(metadata_df[metadata_df.isnull().any(axis=1)])}")
|
113 |
+
|
114 |
# Add a key to the selectbox to ensure it refreshes properly
|
115 |
selected = st.sidebar.selectbox("Select a collection", list(collections.keys()), key="collection_selector")
|
116 |
search_query = collections[selected]
|