Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -239,7 +239,7 @@ if fetch_data:
|
|
239 |
# Render stats summary in sidebar
|
240 |
stats_html = f"""
|
241 |
<div class="sidebar-stats">
|
242 |
-
<h3 style="color: lightgray;"
|
243 |
<p style="color:lightgray;">Total Records: <b>{len(metadata_df)}</b></p>
|
244 |
<p style="color:lightgray;">Incomplete Records: <b>{incomplete_count}</b></p>
|
245 |
<p style="color:lightgray;">Overall Metadata Completeness: <b>{overall_percent:.1f}%</b></p>
|
@@ -248,7 +248,7 @@ if fetch_data:
|
|
248 |
stats_placeholder.markdown(stats_html, unsafe_allow_html=True)
|
249 |
|
250 |
# π Field Completeness Breakdown
|
251 |
-
st.sidebar.markdown("###
|
252 |
st.sidebar.dataframe(completeness_table.style.format("{:.1f}%"))
|
253 |
|
254 |
|
@@ -288,7 +288,7 @@ if fetch_data:
|
|
288 |
margin-top: 1.5rem;
|
289 |
color: lightgray;
|
290 |
'>
|
291 |
-
<h4 style='margin-bottom: 1rem;'
|
292 |
""", unsafe_allow_html=True)
|
293 |
|
294 |
st.dataframe(
|
@@ -336,7 +336,7 @@ if fetch_data:
|
|
336 |
else:
|
337 |
st.markdown("""
|
338 |
<div class='custom-table'>
|
339 |
-
<b
|
340 |
</div>
|
341 |
""", unsafe_allow_html=True)
|
342 |
|
@@ -345,7 +345,7 @@ if fetch_data:
|
|
345 |
else:
|
346 |
st.markdown("""
|
347 |
<div class='custom-table'>
|
348 |
-
<b
|
349 |
</div>
|
350 |
""", unsafe_allow_html=True)
|
351 |
else:
|
|
|
239 |
# Render stats summary in sidebar
|
240 |
stats_html = f"""
|
241 |
<div class="sidebar-stats">
|
242 |
+
<h3 style="color: lightgray;">Quick Stats</h3>
|
243 |
<p style="color:lightgray;">Total Records: <b>{len(metadata_df)}</b></p>
|
244 |
<p style="color:lightgray;">Incomplete Records: <b>{incomplete_count}</b></p>
|
245 |
<p style="color:lightgray;">Overall Metadata Completeness: <b>{overall_percent:.1f}%</b></p>
|
|
|
248 |
stats_placeholder.markdown(stats_html, unsafe_allow_html=True)
|
249 |
|
250 |
# π Field Completeness Breakdown
|
251 |
+
st.sidebar.markdown("###Field Completeness Breakdown", unsafe_allow_html=True)
|
252 |
st.sidebar.dataframe(completeness_table.style.format("{:.1f}%"))
|
253 |
|
254 |
|
|
|
288 |
margin-top: 1.5rem;
|
289 |
color: lightgray;
|
290 |
'>
|
291 |
+
<h4 style='margin-bottom: 1rem;'>Field Completeness Breakdown</h4>
|
292 |
""", unsafe_allow_html=True)
|
293 |
|
294 |
st.dataframe(
|
|
|
336 |
else:
|
337 |
st.markdown("""
|
338 |
<div class='custom-table'>
|
339 |
+
<b>No metadata enhancement suggestions available.</b>
|
340 |
</div>
|
341 |
""", unsafe_allow_html=True)
|
342 |
|
|
|
345 |
else:
|
346 |
st.markdown("""
|
347 |
<div class='custom-table'>
|
348 |
+
<b>Not enough descriptive data to generate metadata suggestions.</b>
|
349 |
</div>
|
350 |
""", unsafe_allow_html=True)
|
351 |
else:
|