GMARTINEZMILLA commited on
Commit
47c5ece
·
1 Parent(s): 531a85a

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +9 -22
app.py CHANGED
@@ -189,40 +189,27 @@ if page == "Summary":
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
227
  with col2:
228
  st.markdown('#### 3D Customer Clusters')
 
189
 
190
  st.markdown('#### Clustering Details')
191
 
192
+ # Display metrics in a wider row with slight horizontal spacing
193
+ st.markdown(f"""
194
+ <div style="display: flex; justify-content: space-evenly;">
195
+ <div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px; width: 23%;">
 
 
196
  <h5 style="color:{primary_color}; text-align: center; margin: 0;">Observations</h5>
197
  <h3 style="color:{text_color}; text-align: center; margin: 0;">696</h3>
198
  </div>
199
+ <div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px; width: 23%;">
 
 
 
 
200
  <h5 style="color:{primary_color}; text-align: center; margin: 0;">Silhouette Score</h5>
201
  <h3 style="color:{text_color}; text-align: center; margin: 0;">0.57744</h3>
202
  </div>
203
+ <div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px; width: 23%;">
 
 
 
 
204
  <h5 style="color:{primary_color}; text-align: center; margin: 0;">Calinski-Harabasz</h5>
205
  <h3 style="color:{text_color}; text-align: center; margin: 0;">422.98</h3>
206
  </div>
207
+ <div style="background-color:{metric_box_color}; padding: 10px; border-radius: 8px; width: 23%;">
 
 
 
 
208
  <h5 style="color:{primary_color}; text-align: center; margin: 0;">Davies-Bouldin</h5>
209
  <h3 style="color:{text_color}; text-align: center; margin: 0;">0.63446</h3>
210
  </div>
211
+ </div>
212
+ """, unsafe_allow_html=True)
213
  # Middle Column (White): 3D Cluster Model and Bar Chart
214
  with col2:
215
  st.markdown('#### 3D Customer Clusters')