Update app.py
Browse files
app.py
CHANGED
@@ -72,12 +72,8 @@ with gr.Blocks() as demo:
|
|
72 |
)
|
73 |
|
74 |
with gr.Row():
|
75 |
-
# with gr.Column():
|
76 |
-
|
77 |
with gr.Column():
|
78 |
-
solver = gr.
|
79 |
-
["liblinear", "saga"], label="Solver", value="liblinear"
|
80 |
-
)
|
81 |
intersect_scaling = gr.Slider(
|
82 |
value=10000.0,
|
83 |
minimum=0,
|
@@ -95,7 +91,8 @@ with gr.Blocks() as demo:
|
|
95 |
step=0.1,
|
96 |
label="Maximum Iterations",
|
97 |
)
|
98 |
-
|
|
|
99 |
|
100 |
train_buttion.click(
|
101 |
train_it, inputs=[solver, intersect_scaling, tol, max_iter], outputs=gr.Plot()
|
|
|
72 |
)
|
73 |
|
74 |
with gr.Row():
|
|
|
|
|
75 |
with gr.Column():
|
76 |
+
solver = gr.Radio(["liblinear", "saga"], label="Solver", value="liblinear")
|
|
|
|
|
77 |
intersect_scaling = gr.Slider(
|
78 |
value=10000.0,
|
79 |
minimum=0,
|
|
|
91 |
step=0.1,
|
92 |
label="Maximum Iterations",
|
93 |
)
|
94 |
+
|
95 |
+
train_buttion = gr.Button(label="Train")
|
96 |
|
97 |
train_buttion.click(
|
98 |
train_it, inputs=[solver, intersect_scaling, tol, max_iter], outputs=gr.Plot()
|