Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
|
|
53 |
archfilter = gr.Dropdown(label="Filter by model architecture", multiselect=True, choices=list(set(data["Architecture"])), value=list(set(data["Architecture"])))
|
54 |
lcnsfilter = gr.Dropdown(label="Filter by model license", multiselect=True, choices=list(set(data["License"])), value=list(set(data["License"])))
|
55 |
|
56 |
-
table = gr.Dataframe(
|
57 |
|
58 |
namefilter.submit(filter_table, [namefilter,typefilter,archfilter,lcnsfilter], table)
|
59 |
for filter in [typefilter, archfilter, lcnsfilter]:
|
@@ -76,5 +76,5 @@ with gr.Blocks() as demo:
|
|
76 |
|
77 |
submit.click(fn=submit_model, inputs=model_name, outputs=output)
|
78 |
|
79 |
-
|
80 |
demo.launch()
|
|
|
53 |
archfilter = gr.Dropdown(label="Filter by model architecture", multiselect=True, choices=list(set(data["Architecture"])), value=list(set(data["Architecture"])))
|
54 |
lcnsfilter = gr.Dropdown(label="Filter by model license", multiselect=True, choices=list(set(data["License"])), value=list(set(data["License"])))
|
55 |
|
56 |
+
table = gr.Dataframe()
|
57 |
|
58 |
namefilter.submit(filter_table, [namefilter,typefilter,archfilter,lcnsfilter], table)
|
59 |
for filter in [typefilter, archfilter, lcnsfilter]:
|
|
|
76 |
|
77 |
submit.click(fn=submit_model, inputs=model_name, outputs=output)
|
78 |
|
79 |
+
demo.load(fn=filter_table, inputs=[namefilter,typefilter,archfilter,lcnsfilter], outputs=table)
|
80 |
demo.launch()
|