Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,9 @@ with gr.Blocks() as demo:
|
|
| 70 |
with gr.Column():
|
| 71 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000, step=1,info="Set to -1 to generate new random points each run ",value=-1)
|
| 72 |
num_points = gr.Slider(label="Number of Points", value="20", minimum=5, maximum=100, step=2)
|
| 73 |
-
btn = gr.Button("Run")
|
| 74 |
out = gr.Plot()
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
demo.launch()
|
|
|
|
| 70 |
with gr.Column():
|
| 71 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000, step=1,info="Set to -1 to generate new random points each run ",value=-1)
|
| 72 |
num_points = gr.Slider(label="Number of Points", value="20", minimum=5, maximum=100, step=2)
|
| 73 |
+
#btn = gr.Button("Run")
|
| 74 |
out = gr.Plot()
|
| 75 |
+
seed.change(fn=plot, inputs=[seed,num_points] , outputs=out)
|
| 76 |
+
num_points.change(fn=plot, inputs=[seed,num_points] , outputs=out)
|
| 77 |
+
#btn.click(fn=plot, inputs=[seed,num_points] , outputs=out)
|
| 78 |
demo.launch()
|