Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -138,13 +138,13 @@ with gr.Blocks(theme=theme) as demo:
|
|
138 |
''')
|
139 |
gr.Markdown(model_card)
|
140 |
gr.Markdown("Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>. Based on the example from <a href=\"https://scikit-learn.org/stable/auto_examples/cluster/plot_inductive_clustering.html#sphx-glr-auto-examples-cluster-plot-inductive-clustering-py\">scikit-learn</a>")
|
141 |
-
n_samples = gr.Slider(minimum=
|
142 |
-
n_new_data = gr.Slider(minimum=100, maximum=
|
143 |
with gr.Row():
|
144 |
with gr.Column():
|
145 |
plot1 = gr.Plot(label="Clustering")
|
146 |
with gr.Column():
|
147 |
-
plot2 = gr.Plot(label="Clustering with
|
148 |
with gr.Row():
|
149 |
with gr.Column():
|
150 |
plot3 = gr.Plot(label="Inductive clustering")
|
|
|
138 |
''')
|
139 |
gr.Markdown(model_card)
|
140 |
gr.Markdown("Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>. Based on the example from <a href=\"https://scikit-learn.org/stable/auto_examples/cluster/plot_inductive_clustering.html#sphx-glr-auto-examples-cluster-plot-inductive-clustering-py\">scikit-learn</a>")
|
141 |
+
n_samples = gr.Slider(minimum=1000, maximum=5000, step=500, value=1000, label="Number of samples")
|
142 |
+
n_new_data = gr.Slider(minimum=100, maximum=500, step=50, value=100, label="Number of new data")
|
143 |
with gr.Row():
|
144 |
with gr.Column():
|
145 |
plot1 = gr.Plot(label="Clustering")
|
146 |
with gr.Column():
|
147 |
+
plot2 = gr.Plot(label="Clustering with new data")
|
148 |
with gr.Row():
|
149 |
with gr.Column():
|
150 |
plot3 = gr.Plot(label="Inductive clustering")
|