kris-123 commited on
Commit
3d891b1
1 Parent(s): 2e51f6c

Update submit button layout

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -43,9 +43,10 @@ with gr.Blocks() as demo:
43
  gr.Markdown("Demo is based on the [Kernel PCA](https://scikit-learn.org/stable/auto_examples/decomposition/plot_kernel_pca.html#sphx-glr-auto-examples-decomposition-plot-kernel-pca-py")
44
  with gr.Row():
45
  p1 = gr.Slider(0, 10, label="Number of PCs", value=2, step=1)
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()
 
43
  gr.Markdown("Demo is based on the [Kernel PCA](https://scikit-learn.org/stable/auto_examples/decomposition/plot_kernel_pca.html#sphx-glr-auto-examples-decomposition-plot-kernel-pca-py")
44
  with gr.Row():
45
  p1 = gr.Slider(0, 10, label="Number of PCs", value=2, step=1)
46
+ p2 = gr.Slider(0, 10, label="Kernel coefficient", value=10, step=1e-3)
47
  p3 = gr.Slider(0, 1, label="Hyperparameter for ridge regression", value=0.1, step=1e-3)
48
+
49
+ btn = gr.Button(value="Submit")
50
+ btn.click(fit_plot, inputs= [p1,p2,p3], outputs= gr.Plot(label='Projecting data with PCA and Kernel PCA') )
51
 
52
  demo.launch()