Switch Dropdowns to CheckboxGroups
Browse files
app.py
CHANGED
@@ -48,10 +48,10 @@ with gr.Blocks() as demo:
|
|
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.
|
53 |
-
archfilter = gr.
|
54 |
-
lcnsfilter = gr.
|
55 |
|
56 |
table = gr.Dataframe()
|
57 |
|
|
|
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 and hit Enter")
|
52 |
+
typefilter = gr.CheckboxGroup(label="Filter by model type", choices=list(data["Type"].unique()), value=["Base","Chat"])
|
53 |
+
archfilter = gr.CheckboxGroup(label="Filter by model architecture", choices=list(data["Architecture"].unique()), value=list(data["Architecture"].unique()))
|
54 |
+
lcnsfilter = gr.CheckboxGroup(label="Filter by model license", choices=list(data["License"].unique()), value=list(data["License"].unique()))
|
55 |
|
56 |
table = gr.Dataframe()
|
57 |
|