Spaces:
Sleeping
Sleeping
Fix typo in function name
Browse files
app.py
CHANGED
@@ -46,6 +46,6 @@ with gr.Blocks() as demo:
|
|
46 |
p2 = gr.Slider(0, 10, label="Kernel coefficient", value=2, step=1e-3)
|
47 |
p3 = gr.Slider(0, 1, label="Hyperparameter for ridge regression", value=0.1, step=1e-3)
|
48 |
btn = gr.Button(value="Submit")
|
49 |
-
btn.click(
|
50 |
|
51 |
demo.launch()
|
|
|
46 |
p2 = gr.Slider(0, 10, label="Kernel coefficient", value=2, step=1e-3)
|
47 |
p3 = gr.Slider(0, 1, label="Hyperparameter for ridge regression", value=0.1, step=1e-3)
|
48 |
btn = gr.Button(value="Submit")
|
49 |
+
btn.click(fit_plot, inputs= [p1,p2,p3], outputs= gr.Plot(label='Projecting data with PCA and Kernel PCA') )
|
50 |
|
51 |
demo.launch()
|