Spaces:
Sleeping
Sleeping
Jayabalambika
commited on
Commit
·
4a2a26f
1
Parent(s):
f08f8ee
Update app.py
Browse files
app.py
CHANGED
@@ -64,9 +64,9 @@ with gr.Blocks(title=title) as demo:
|
|
64 |
gr.Markdown(" **[Demo is based on sklearn docs](https://scikit-learn.org/stable/auto_examples/linear_model/plot_sgd_penalties.html#sphx-glr-auto-examples-linear-model-plot-sgd-penalties-py)**")
|
65 |
|
66 |
# greet_btn.click(fn=greet, inputs=name, outputs=output)
|
67 |
-
x = gr.Dropdown(["red", "blue", "green"], label="l1_color", type="index"),
|
68 |
-
y = gr.Dropdown(["red", "blue", "green"], label="l2_color", type="index"),
|
69 |
-
z = gr.Dropdown(["red", "blue", "green"], label="elastic_net_color", type="index"),
|
70 |
|
71 |
btn = gr.Button(value="Visualize SGD penalties")
|
72 |
btn.click(plot_penalties, outputs= gr.Plot() ) #
|
|
|
64 |
gr.Markdown(" **[Demo is based on sklearn docs](https://scikit-learn.org/stable/auto_examples/linear_model/plot_sgd_penalties.html#sphx-glr-auto-examples-linear-model-plot-sgd-penalties-py)**")
|
65 |
|
66 |
# greet_btn.click(fn=greet, inputs=name, outputs=output)
|
67 |
+
# x = gr.Dropdown(["red", "blue", "green"], label="l1_color", type="index"),
|
68 |
+
# y = gr.Dropdown(["red", "blue", "green"], label="l2_color", type="index"),
|
69 |
+
# z = gr.Dropdown(["red", "blue", "green"], label="elastic_net_color", type="index"), # not working
|
70 |
|
71 |
btn = gr.Button(value="Visualize SGD penalties")
|
72 |
btn.click(plot_penalties, outputs= gr.Plot() ) #
|