Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
dominguesm
commited on
Commit
·
8301724
1
Parent(s):
a2e4a71
Remove gradio version
Browse files- app.py +9 -3
- requirements.txt +1 -2
app.py
CHANGED
@@ -224,7 +224,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
224 |
info="'l1' or 'l2', separated by a comma",
|
225 |
interactive=True,
|
226 |
)
|
227 |
-
|
228 |
with gr.Tab("DESCRIPTION OF PARAMETERS"):
|
229 |
gr.Markdown("""### Classifier Alpha""")
|
230 |
gr.Markdown(load_description("parameter_grid/alpha"))
|
@@ -267,8 +267,14 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
267 |
|
268 |
brn_train.click(
|
269 |
train_model,
|
270 |
-
[
|
271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
)
|
273 |
|
274 |
app.launch()
|
|
|
224 |
info="'l1' or 'l2', separated by a comma",
|
225 |
interactive=True,
|
226 |
)
|
227 |
+
|
228 |
with gr.Tab("DESCRIPTION OF PARAMETERS"):
|
229 |
gr.Markdown("""### Classifier Alpha""")
|
230 |
gr.Markdown(load_description("parameter_grid/alpha"))
|
|
|
267 |
|
268 |
brn_train.click(
|
269 |
train_model,
|
270 |
+
inputs=[
|
271 |
+
drop_categories,
|
272 |
+
vect__max_df,
|
273 |
+
vect__min_df,
|
274 |
+
vect__ngram_range,
|
275 |
+
vect__norm,
|
276 |
+
],
|
277 |
+
outputs=[plot_trade, plot_coordinates, best_parameters, test_accuracy],
|
278 |
)
|
279 |
|
280 |
app.launch()
|
requirements.txt
CHANGED
@@ -2,5 +2,4 @@ numpy
|
|
2 |
scikit-learn
|
3 |
plotly
|
4 |
matplotlib
|
5 |
-
pandas
|
6 |
-
gradio==3.28.3
|
|
|
2 |
scikit-learn
|
3 |
plotly
|
4 |
matplotlib
|
5 |
+
pandas
|
|