Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,7 @@ import time
|
|
6 |
from sklearn.cluster import KMeans, MiniBatchKMeans
|
7 |
from sklearn.metrics.pairwise import pairwise_distances_argmin
|
8 |
|
9 |
-
|
10 |
-
primary_hue="indigo",
|
11 |
-
secondary_hue="blue",
|
12 |
-
neutral_hue="slate",
|
13 |
-
)
|
14 |
model_card = f"""
|
15 |
## Description
|
16 |
|
@@ -116,7 +112,7 @@ def do_train(n_samples, batch_size):
|
|
116 |
|
117 |
|
118 |
|
119 |
-
with gr.Blocks(
|
120 |
gr.Markdown('''
|
121 |
<div>
|
122 |
<h1 style='text-align: center'>Comparison of the K-Means and MiniBatchKMeans clustering algorithms</h1>
|
|
|
6 |
from sklearn.cluster import KMeans, MiniBatchKMeans
|
7 |
from sklearn.metrics.pairwise import pairwise_distances_argmin
|
8 |
|
9 |
+
|
|
|
|
|
|
|
|
|
10 |
model_card = f"""
|
11 |
## Description
|
12 |
|
|
|
112 |
|
113 |
|
114 |
|
115 |
+
with gr.Blocks() as demo:
|
116 |
gr.Markdown('''
|
117 |
<div>
|
118 |
<h1 style='text-align: center'>Comparison of the K-Means and MiniBatchKMeans clustering algorithms</h1>
|