CCockrum commited on
Commit
d619be2
·
verified ·
1 Parent(s): 1ce0089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -34,7 +34,7 @@ st.markdown("""
34
  border-radius: 12px;
35
  margin-bottom: 1rem;
36
  }
37
- .stAlert {
38
  background-color: #f0f0f5 !important;
39
  color: #333333 !important;
40
  padding: 1.25rem !important;
@@ -90,22 +90,13 @@ st.sidebar.markdown("## Settings")
90
  selected = st.sidebar.selectbox("Select a collection", list(collections.keys()))
91
  search_query = collections[selected]
92
 
93
- # About / Help
94
- with st.sidebar.expander("ℹ️ About This Tool"):
95
- st.markdown(
96
- "This agent audits and enhances metadata from Library of Congress digital collections. "
97
- "Select a collection from the dropdown to begin your analysis."
98
- )
99
 
100
  # Display API URL
101
  st.sidebar.write(f"Selected Collection: {selected}")
102
  st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
103
 
104
- # Summary Stats (conditionally displayed after data load)
105
- if 'metadata_df' in locals() and not metadata_df.empty:
106
- st.sidebar.markdown("### 📊 Quick Stats")
107
- st.sidebar.write(f"Total Records: {len(metadata_df)}")
108
- st.sidebar.write(f"Incomplete Records: {incomplete_records.shape[0]}")
109
 
110
  # Fetch data from LOC API with spoofed User-Agent header
111
  headers = {
 
34
  border-radius: 12px;
35
  margin-bottom: 1rem;
36
  }
37
+ .stAlert {
38
  background-color: #f0f0f5 !important;
39
  color: #333333 !important;
40
  padding: 1.25rem !important;
 
90
  selected = st.sidebar.selectbox("Select a collection", list(collections.keys()))
91
  search_query = collections[selected]
92
 
93
+
 
 
 
 
 
94
 
95
  # Display API URL
96
  st.sidebar.write(f"Selected Collection: {selected}")
97
  st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
98
 
99
+
 
 
 
 
100
 
101
  # Fetch data from LOC API with spoofed User-Agent header
102
  headers = {