Update app.py
Browse files
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 |
-
|
|
|
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 |
|