rbgo commited on
Commit
1e8023f
β€’
1 Parent(s): e657a4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- search_input = gr.Textbox(label="πŸ” Search Model Name", placeholder="Enter model name...")
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
- search_input.change(filter_and_search, inputs=[search_input, library_dropdown], outputs=leaderboard)
146
- library_dropdown.change(filter_and_search, inputs=[search_input, library_dropdown], outputs=leaderboard)
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