MuskanMjn commited on
Commit
cfd9a0f
·
1 Parent(s): 908df9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -60,7 +60,8 @@ with gr.Blocks() as demo:
60
  plot = gr.Plot(label=f"Decision function plot for Non-Linear SVC with the '{inp1}' kernel and '{inp2}' gamma ")
61
  num = gr.Textbox(label="Test Accuracy")
62
 
63
- btn.click(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
 
64
 
65
  gr.HTML("<hr>")
66
 
 
60
  plot = gr.Plot(label=f"Decision function plot for Non-Linear SVC with the '{inp1}' kernel and '{inp2}' gamma ")
61
  num = gr.Textbox(label="Test Accuracy")
62
 
63
+ inp1.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
64
+ inp2.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
65
 
66
  gr.HTML("<hr>")
67