devingulliver
commited on
Attempt to get rid of button
Browse files
app.py
CHANGED
@@ -47,17 +47,17 @@ with gr.Blocks() as demo:
|
|
47 |
|
48 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
49 |
with gr.Tab("π
LLM Benchmark"):
|
50 |
-
with gr.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
lcnsfilter = gr.Dropdown(label="Filter by model license", multiselect=True, choices=list(set(data["License"])), scale=2)
|
56 |
-
filter = gr.Button("Filter", scale=0)
|
57 |
|
58 |
-
table = gr.Dataframe(filter_table(
|
59 |
|
60 |
-
|
|
|
|
|
61 |
|
62 |
with gr.Tab("π About"):
|
63 |
gr.Markdown("""
|
|
|
47 |
|
48 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
49 |
with gr.Tab("π
LLM Benchmark"):
|
50 |
+
with gr.Row():
|
51 |
+
namefilter = model_name = gr.Textbox(max_lines=1, label="Search by model name")
|
52 |
+
typefilter = gr.Dropdown(label="Filter by model type", multiselect=True, choices=list(set(data["Type"])), value=["Base","Chat"])
|
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(filter_table(namefilter,typefilter,archfilter,lcnsfilter))
|
57 |
|
58 |
+
namefilter.submit(filter_table, [namefilter,typefilter,archfilter,lcnsfilter], table)
|
59 |
+
for filter in [typefilter, archfilter, lcnsfilter]:
|
60 |
+
filter.input(filter_table, [namefilter,typefilter,archfilter,lcnsfilter], table)
|
61 |
|
62 |
with gr.Tab("π About"):
|
63 |
gr.Markdown("""
|