Spaces:
Sleeping
Sleeping
Commit
·
531a85a
1
Parent(s):
7672a6d
feat: updated website
Browse files
app.py
CHANGED
@@ -189,38 +189,38 @@ if page == "Summary":
|
|
189 |
|
190 |
st.markdown('#### Clustering Details')
|
191 |
|
192 |
-
# Create a
|
193 |
-
|
194 |
-
|
|
|
195 |
st.markdown(f"""
|
196 |
-
<div style="background-color:{metric_box_color}; padding:
|
197 |
-
<
|
198 |
-
<
|
199 |
</div>
|
200 |
""", unsafe_allow_html=True)
|
201 |
|
202 |
-
with
|
203 |
st.markdown(f"""
|
204 |
-
<div style="background-color:{metric_box_color}; padding:
|
205 |
-
<
|
206 |
-
<
|
207 |
</div>
|
208 |
""", unsafe_allow_html=True)
|
209 |
|
210 |
-
|
211 |
-
with col_metric3:
|
212 |
st.markdown(f"""
|
213 |
-
<div style="background-color:{metric_box_color}; padding:
|
214 |
-
<
|
215 |
-
<
|
216 |
</div>
|
217 |
""", unsafe_allow_html=True)
|
218 |
|
219 |
-
with
|
220 |
st.markdown(f"""
|
221 |
-
<div style="background-color:{metric_box_color}; padding:
|
222 |
-
<
|
223 |
-
<
|
224 |
</div>
|
225 |
""", unsafe_allow_html=True)
|
226 |
# Middle Column (White): 3D Cluster Model and Bar Chart
|
|
|
189 |
|
190 |
st.markdown('#### Clustering Details')
|
191 |
|
192 |
+
# Create a row layout for all metrics to reduce vertical space
|
193 |
+
col1_metric1, col1_metric2, col1_metric3, col1_metric4 = st.columns(4)
|
194 |
+
|
195 |
+
with col1_metric1:
|
196 |
st.markdown(f"""
|
197 |
+
<div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px;">
|
198 |
+
<h5 style="color:{primary_color}; text-align: center; margin: 0;">Observations</h5>
|
199 |
+
<h3 style="color:{text_color}; text-align: center; margin: 0;">696</h3>
|
200 |
</div>
|
201 |
""", unsafe_allow_html=True)
|
202 |
|
203 |
+
with col1_metric2:
|
204 |
st.markdown(f"""
|
205 |
+
<div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px;">
|
206 |
+
<h5 style="color:{primary_color}; text-align: center; margin: 0;">Silhouette Score</h5>
|
207 |
+
<h3 style="color:{text_color}; text-align: center; margin: 0;">0.57744</h3>
|
208 |
</div>
|
209 |
""", unsafe_allow_html=True)
|
210 |
|
211 |
+
with col1_metric3:
|
|
|
212 |
st.markdown(f"""
|
213 |
+
<div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px;">
|
214 |
+
<h5 style="color:{primary_color}; text-align: center; margin: 0;">Calinski-Harabasz</h5>
|
215 |
+
<h3 style="color:{text_color}; text-align: center; margin: 0;">422.98</h3>
|
216 |
</div>
|
217 |
""", unsafe_allow_html=True)
|
218 |
|
219 |
+
with col1_metric4:
|
220 |
st.markdown(f"""
|
221 |
+
<div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px;">
|
222 |
+
<h5 style="color:{primary_color}; text-align: center; margin: 0;">Davies-Bouldin</h5>
|
223 |
+
<h3 style="color:{text_color}; text-align: center; margin: 0;">0.63446</h3>
|
224 |
</div>
|
225 |
""", unsafe_allow_html=True)
|
226 |
# Middle Column (White): 3D Cluster Model and Bar Chart
|