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

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -182,31 +182,31 @@ if page == "Summary":
182
 
183
  # Left Column (Red): Metrics and Donut Charts
184
  with col1:
185
- st.markdown('#### Main Data Information')
186
  st.metric(label="Customers Analysed", value="3.000")
187
  st.metric(label="Unique Products Sold", value="10.702")
188
  st.metric(label="Total Sales Instances", value="764.396")
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)
 
182
 
183
  # Left Column (Red): Metrics and Donut Charts
184
  with col1:
185
+ st.markdown('#### General Data Information')
186
  st.metric(label="Customers Analysed", value="3.000")
187
  st.metric(label="Unique Products Sold", value="10.702")
188
  st.metric(label="Total Sales Instances", value="764.396")
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)