GMARTINEZMILLA commited on
Commit
d05d715
·
1 Parent(s): 5518a43

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -189,24 +189,24 @@ if page == "Summary":
189
 
190
  st.markdown('#### Clustering Details')
191
 
192
- # Display metrics in a horizontal layout
193
  st.markdown(f"""
194
- <div style="display: flex; justify-content: space-between; gap: 10px;">
195
- <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%;">
196
- <h5 style="color:{primary_color}; text-align: center;">Observations</h5>
197
- <h3 style="color:{text_color}; text-align: center;">696</h3>
198
  </div>
199
- <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%;">
200
- <h5 style="color:{primary_color}; text-align: center;">Silhouette Score</h5>
201
- <h3 style="color:{text_color}; text-align: center;">0.57744</h3>
202
  </div>
203
- <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%;">
204
- <h5 style="color:{primary_color}; text-align: center;">Calinski-Harabasz</h5>
205
- <h3 style="color:{text_color}; text-align: center;">422.98</h3>
206
  </div>
207
- <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%;">
208
- <h5 style="color:{primary_color}; text-align: center;">Davies-Bouldin</h5>
209
- <h3 style="color:{text_color}; text-align: center;">0.63446</h3>
210
  </div>
211
  </div>
212
  """, unsafe_allow_html=True)
 
189
 
190
  st.markdown('#### Clustering Details')
191
 
192
+ # Horizontal layout for clustering metrics similar to "General Data Information"
193
  st.markdown(f"""
194
+ <div style="display: flex; justify-content: space-around;">
195
+ <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%; text-align: center;">
196
+ <h5 style="color:{primary_color};">Observations</h5>
197
+ <h3 style="color:{text_color};">696</h3>
198
  </div>
199
+ <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%; text-align: center;">
200
+ <h5 style="color:{primary_color};">Silhouette Score</h5>
201
+ <h3 style="color:{text_color};">0.57744</h3>
202
  </div>
203
+ <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%; text-align: center;">
204
+ <h5 style="color:{primary_color};">Calinski-Harabasz</h5>
205
+ <h3 style="color:{text_color};">422.98</h3>
206
  </div>
207
+ <div style="background-color:{metric_box_color}; padding: 15px; border-radius: 8px; width: 20%; text-align: center;">
208
+ <h5 style="color:{primary_color};">Davies-Bouldin</h5>
209
+ <h3 style="color:{text_color};">0.63446</h3>
210
  </div>
211
  </div>
212
  """, unsafe_allow_html=True)