Update app.py
Browse files
app.py
CHANGED
@@ -135,15 +135,15 @@ with gr.Blocks(css=custom_css) as demo:
|
|
135 |
with gr.Tabs():
|
136 |
with gr.TabItem("π Leaderboard"):
|
137 |
with gr.Row():
|
138 |
-
|
139 |
library_dropdown = gr.Dropdown(choices=["All"] + df['Library'].unique().tolist(), label="π·οΈ Filter by Library", value="All")
|
140 |
|
141 |
leaderboard = gr.DataFrame(df)
|
142 |
|
143 |
gr.HTML(HOW_WE_TESTED)
|
144 |
|
145 |
-
|
146 |
-
library_dropdown.change(filter_and_search, inputs=[
|
147 |
|
148 |
demo.load(get_leaderboard_df, outputs=[leaderboard])
|
149 |
|
|
|
135 |
with gr.Tabs():
|
136 |
with gr.TabItem("π Leaderboard"):
|
137 |
with gr.Row():
|
138 |
+
model_dropdown = gr.Dropdown(choices=["All"] + df['Model_Name'].unique().tolist(), label="π·οΈ Filter by Model_Name", value="All")
|
139 |
library_dropdown = gr.Dropdown(choices=["All"] + df['Library'].unique().tolist(), label="π·οΈ Filter by Library", value="All")
|
140 |
|
141 |
leaderboard = gr.DataFrame(df)
|
142 |
|
143 |
gr.HTML(HOW_WE_TESTED)
|
144 |
|
145 |
+
model_dropdown.change(filter_and_search, inputs=[model_dropdown, library_dropdown], outputs=leaderboard)
|
146 |
+
library_dropdown.change(filter_and_search, inputs=[model_dropdown, library_dropdown], outputs=leaderboard)
|
147 |
|
148 |
demo.load(get_leaderboard_df, outputs=[leaderboard])
|
149 |
|