CCockrum commited on
Commit
c8aa559
·
verified ·
1 Parent(s): 43bb364

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -75,6 +75,13 @@ st.markdown("""
75
  border: 1px solid #ccc;
76
 
77
  }
 
 
 
 
 
 
 
78
 
79
  </style>
80
  """, unsafe_allow_html=True)
@@ -103,12 +110,6 @@ collections = {
103
  # Create empty metadata_df variable to ensure it exists before checking
104
  metadata_df = pd.DataFrame()
105
 
106
- # Display Summary Statistics if available
107
- if 'metadata_df' in locals() and not metadata_df.empty:
108
- st.sidebar.markdown("### Quick Stats")
109
- st.sidebar.write(f"Total Records: {len(metadata_df)}")
110
- st.sidebar.write(f"Incomplete Records: {len(metadata_df[metadata_df.isnull().any(axis=1)])}")
111
-
112
  # Add a key to the selectbox to ensure it refreshes properly
113
  selected = st.sidebar.selectbox("Select a collection", list(collections.keys()), key="collection_selector")
114
  search_query = collections[selected]
 
75
  border: 1px solid #ccc;
76
 
77
  }
78
+ .sidebar-stats {
79
+ color: lightgray !important;
80
+ font-size: 1.1rem !important;
81
+ margin-top: 1.5rem;
82
+ font-weight: 600;
83
+ }
84
+
85
 
86
  </style>
87
  """, unsafe_allow_html=True)
 
110
  # Create empty metadata_df variable to ensure it exists before checking
111
  metadata_df = pd.DataFrame()
112
 
 
 
 
 
 
 
113
  # Add a key to the selectbox to ensure it refreshes properly
114
  selected = st.sidebar.selectbox("Select a collection", list(collections.keys()), key="collection_selector")
115
  search_query = collections[selected]