Spaces:
Sleeping
Sleeping
Commit
·
5518a43
1
Parent(s):
47c5ece
feat: updated website
Browse files
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('####
|
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
|
193 |
st.markdown(f"""
|
194 |
-
<div style="display: flex; justify-content: space-
|
195 |
-
<div style="background-color:{metric_box_color}; padding:
|
196 |
-
<h5 style="color:{primary_color}; text-align: center;
|
197 |
-
<h3 style="color:{text_color}; text-align: center;
|
198 |
</div>
|
199 |
-
<div style="background-color:{metric_box_color}; padding:
|
200 |
-
<h5 style="color:{primary_color}; text-align: center;
|
201 |
-
<h3 style="color:{text_color}; text-align: center;
|
202 |
</div>
|
203 |
-
<div style="background-color:{metric_box_color}; padding:
|
204 |
-
<h5 style="color:{primary_color}; text-align: center;
|
205 |
-
<h3 style="color:{text_color}; text-align: center;
|
206 |
</div>
|
207 |
-
<div style="background-color:{metric_box_color}; padding:
|
208 |
-
<h5 style="color:{primary_color}; text-align: center;
|
209 |
-
<h3 style="color:{text_color}; text-align: center;
|
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)
|