Commit
·
7539a02
1
Parent(s):
0ed35c6
Event listener
Browse files
app.py
CHANGED
@@ -85,10 +85,9 @@ with gr.Blocks() as demo:
|
|
85 |
"""
|
86 |
)
|
87 |
n = gr.inputs.Slider(10, 30, 5, 20, "Number of training samples")
|
88 |
-
button = gr.Button(label="Update Plot")
|
89 |
plot = gr.Plot(label="Individual & Voting Predictions")
|
90 |
|
91 |
-
|
92 |
demo.load(fn=app_fn, inputs=[n], outputs=[plot])
|
93 |
|
94 |
demo.launch()
|
|
|
85 |
"""
|
86 |
)
|
87 |
n = gr.inputs.Slider(10, 30, 5, 20, "Number of training samples")
|
|
|
88 |
plot = gr.Plot(label="Individual & Voting Predictions")
|
89 |
|
90 |
+
n.change(fn=app_fn, inputs=[n], outputs=[plot])
|
91 |
demo.load(fn=app_fn, inputs=[n], outputs=[plot])
|
92 |
|
93 |
demo.launch()
|