Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,10 @@ with gr.Blocks() as demo:
|
|
57 |
inp2 = gr.Radio(['scale', 'auto'], label="Gamma", info="Choose a gamma value", value="scale")
|
58 |
|
59 |
with gr.Row():
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
|
63 |
inp1.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
64 |
inp2.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
|
|
57 |
inp2 = gr.Radio(['scale', 'auto'], label="Gamma", info="Choose a gamma value", value="scale")
|
58 |
|
59 |
with gr.Row():
|
60 |
+
with gr.Column(scale=2):
|
61 |
+
plot = gr.Plot(label=f"Decision function plot for Non-Linear SVC with the '{inp1}' kernel and '{inp2}' gamma ")
|
62 |
+
with gr.Column(scale=1):
|
63 |
+
num = gr.Textbox(label="Test Accuracy")
|
64 |
|
65 |
inp1.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|
66 |
inp2.change(getColorMap, inputs=[inp1, inp2], outputs=[plot, num])
|