Spaces:
Sleeping
Sleeping
updated to correctly handle minimum values
Browse files
app.py
CHANGED
@@ -226,9 +226,9 @@ with gr.Blocks(title=title) as demo:
|
|
226 |
)
|
227 |
|
228 |
with gr.Row():
|
229 |
-
n_samples = gr.Slider(value=100,
|
230 |
-
n_components = gr.Slider(value=2,
|
231 |
-
n_features = gr.Slider(value=5,
|
232 |
|
233 |
|
234 |
# options for n_components
|
|
|
226 |
)
|
227 |
|
228 |
with gr.Row():
|
229 |
+
n_samples = gr.Slider(value=100, minimum=10, maximum=1000, step=100, label="n_samples")
|
230 |
+
n_components = gr.Slider(value=2, minimum=1, maximum=20, step=1, label="n_components")
|
231 |
+
n_features = gr.Slider(value=5, minimum=5, maximum=25, step=1, label="n_features")
|
232 |
|
233 |
|
234 |
# options for n_components
|