Spaces:
Running
Running
BenchmarkBot
commited on
Commit
Β·
0830b0b
1
Parent(s):
e985813
test checkbox
Browse files
app.py
CHANGED
@@ -66,10 +66,10 @@ def search_tables(single_df, multi_df, query):
|
|
66 |
return filtered_single, filtered_multi
|
67 |
|
68 |
|
69 |
-
def
|
70 |
-
|
71 |
-
|
72 |
-
return
|
73 |
|
74 |
|
75 |
# Define demo interface
|
@@ -83,8 +83,7 @@ with demo:
|
|
83 |
with gr.Box(elem_id="search-bar-table-box"):
|
84 |
search_bar = gr.Textbox(
|
85 |
label="Search π",
|
86 |
-
placeholder="
|
87 |
-
show_label=False,
|
88 |
elem_id="search-bar",
|
89 |
)
|
90 |
|
@@ -152,11 +151,11 @@ with demo:
|
|
152 |
[single_A100_for_search, multi_A100_for_search, search_bar],
|
153 |
[single_A100_leaderboard, multi_A100_leaderboard],
|
154 |
)
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
|
161 |
with gr.Row():
|
162 |
with gr.Accordion("π Citation", open=False):
|
|
|
66 |
return filtered_single, filtered_multi
|
67 |
|
68 |
|
69 |
+
def filter_tables(single_df, multi_df, backends):
|
70 |
+
filtered_single = single_df[single_df["Backend π"].isin(backends)]
|
71 |
+
filtered_multi = multi_df[multi_df["Backend π"].isin(backends)]
|
72 |
+
return filtered_single, filtered_multi
|
73 |
|
74 |
|
75 |
# Define demo interface
|
|
|
83 |
with gr.Box(elem_id="search-bar-table-box"):
|
84 |
search_bar = gr.Textbox(
|
85 |
label="Search π",
|
86 |
+
placeholder="Write model name and press ENTER...",
|
|
|
87 |
elem_id="search-bar",
|
88 |
)
|
89 |
|
|
|
151 |
[single_A100_for_search, multi_A100_for_search, search_bar],
|
152 |
[single_A100_leaderboard, multi_A100_leaderboard],
|
153 |
)
|
154 |
+
backend_checkboxes.select(
|
155 |
+
filter_tables,
|
156 |
+
[single_A100_for_search, multi_A100_for_search, backend_checkboxes],
|
157 |
+
[single_A100_leaderboard, multi_A100_leaderboard],
|
158 |
+
)
|
159 |
|
160 |
with gr.Row():
|
161 |
with gr.Accordion("π Citation", open=False):
|