GMARTINEZMILLA commited on
Commit
531a85a
·
1 Parent(s): 7672a6d

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -189,38 +189,38 @@ if page == "Summary":
189
 
190
  st.markdown('#### Clustering Details')
191
 
192
- # Create a grid layout for the metrics
193
- col_metric1, col_metric2 = st.columns(2)
194
- with col_metric1:
 
195
  st.markdown(f"""
196
- <div style="background-color:{metric_box_color}; padding: 20px; border-radius: 10px;">
197
- <h4 style="color:{primary_color}; text-align: center;">Observations</h4>
198
- <h2 style="color:{text_color}; text-align: center;">696</h2>
199
  </div>
200
  """, unsafe_allow_html=True)
201
 
202
- with col_metric2:
203
  st.markdown(f"""
204
- <div style="background-color:{metric_box_color}; padding: 20px; border-radius: 10px;">
205
- <h4 style="color:{primary_color}; text-align: center;">Silhouette Score</h4>
206
- <h2 style="color:{text_color}; text-align: center;">0.57744</h2>
207
  </div>
208
  """, unsafe_allow_html=True)
209
 
210
- col_metric3, col_metric4 = st.columns(2)
211
- with col_metric3:
212
  st.markdown(f"""
213
- <div style="background-color:{metric_box_color}; padding: 20px; border-radius: 10px;">
214
- <h4 style="color:{primary_color}; text-align: center;">Calinski-Harabasz Score</h4>
215
- <h2 style="color:{text_color}; text-align: center;">422.98</h2>
216
  </div>
217
  """, unsafe_allow_html=True)
218
 
219
- with col_metric4:
220
  st.markdown(f"""
221
- <div style="background-color:{metric_box_color}; padding: 20px; border-radius: 10px;">
222
- <h4 style="color:{primary_color}; text-align: center;">Davies-Bouldin Score</h4>
223
- <h2 style="color:{text_color}; text-align: center;">0.63446</h2>
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