Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,9 @@ st.markdown("""
|
|
| 22 |
padding-left: 2rem !important;
|
| 23 |
padding-right: 2rem !important;
|
| 24 |
}
|
|
|
|
|
|
|
|
|
|
| 25 |
section[data-testid="stSidebar"] > div:first-child {
|
| 26 |
background-color: #1A1A1A !important;
|
| 27 |
color: #FFFFFF !important;
|
|
@@ -183,26 +186,17 @@ if not metadata_df.empty:
|
|
| 183 |
st.markdown("</div>", unsafe_allow_html=True)
|
| 184 |
|
| 185 |
# ------------------- Main Panel -------------------
|
| 186 |
-
st.subheader("Retrieved Metadata Sample")
|
| 187 |
-
st.dataframe(metadata_df.head())
|
| 188 |
-
|
| 189 |
# Metadata completeness analysis (enhanced)
|
| 190 |
-
|
| 191 |
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
x="Field",
|
| 201 |
-
y="Completeness (%)",
|
| 202 |
-
title="Metadata Completeness by Field",
|
| 203 |
-
labels={"Field": "Metadata Field", "Completeness (%)": "Completeness (%)"}
|
| 204 |
-
)
|
| 205 |
-
st.plotly_chart(fig, use_container_width=True)
|
| 206 |
|
| 207 |
|
| 208 |
# ------------------- Metadata Suggestions -------------------
|
|
|
|
| 22 |
padding-left: 2rem !important;
|
| 23 |
padding-right: 2rem !important;
|
| 24 |
}
|
| 25 |
+
header[data-testid="stHeader"] {
|
| 26 |
+
background-color: #1A1A1A !important;
|
| 27 |
+
}
|
| 28 |
section[data-testid="stSidebar"] > div:first-child {
|
| 29 |
background-color: #1A1A1A !important;
|
| 30 |
color: #FFFFFF !important;
|
|
|
|
| 186 |
st.markdown("</div>", unsafe_allow_html=True)
|
| 187 |
|
| 188 |
# ------------------- Main Panel -------------------
|
|
|
|
|
|
|
|
|
|
| 189 |
# Metadata completeness analysis (enhanced)
|
| 190 |
+
st.subheader("π Metadata Completeness Analysis")
|
| 191 |
|
| 192 |
+
fig = px.bar(
|
| 193 |
+
completeness_df.reset_index(),
|
| 194 |
+
x="Field",
|
| 195 |
+
y="Completeness (%)",
|
| 196 |
+
title="Metadata Completeness by Field",
|
| 197 |
+
labels={"Field": "Metadata Field", "Completeness (%)": "Completeness (%)"}
|
| 198 |
+
)
|
| 199 |
+
st.plotly_chart(fig, use_container_width=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
|
| 201 |
|
| 202 |
# ------------------- Metadata Suggestions -------------------
|