SaylorTwift HF Staff commited on
Commit
df4bc30
Β·
verified Β·
1 Parent(s): fa808e0

Update UI: Close filters by default and increase quick filter button size

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -260,21 +260,21 @@ with gr.Blocks(
260
  # Quick filter presets
261
  with gr.Row():
262
  gr.Markdown("**Quick Filters:**")
263
- preset_small = gr.Button("πŸ”Ή Small (<10B)", size="sm", variant="secondary")
264
- preset_medium = gr.Button("πŸ”Έ Medium (10-100B)", size="sm", variant="secondary")
265
- preset_large = gr.Button("πŸ”Ά Large (100B+)", size="sm", variant="secondary")
266
 
267
  with gr.Row():
268
  gr.Markdown("**By Category:**")
269
- preset_coding = gr.Button("πŸ’» Coding", size="sm", variant="secondary")
270
- preset_knowledge = gr.Button("🧠 Knowledge", size="sm", variant="secondary")
271
- preset_math = gr.Button("πŸ“ Math", size="sm", variant="secondary")
272
- preset_vision = gr.Button("πŸ‘οΈ Vision", size="sm", variant="secondary")
273
- preset_agent = gr.Button("πŸ€– Agent", size="sm", variant="secondary")
274
- preset_language = gr.Button("πŸ’¬ Language", size="sm", variant="secondary")
275
 
276
  # Filters Section
277
- with gr.Accordion("πŸŽ›οΈ Filters & Settings", open=True):
278
  # Search, Size Range, and Refresh on same row
279
  with gr.Row():
280
  search_box = gr.Textbox(
 
260
  # Quick filter presets
261
  with gr.Row():
262
  gr.Markdown("**Quick Filters:**")
263
+ preset_small = gr.Button("πŸ”Ή Small (<10B)", size="lg", variant="secondary")
264
+ preset_medium = gr.Button("πŸ”Έ Medium (10-100B)", size="lg", variant="secondary")
265
+ preset_large = gr.Button("πŸ”Ά Large (100B+)", size="lg", variant="secondary")
266
 
267
  with gr.Row():
268
  gr.Markdown("**By Category:**")
269
+ preset_coding = gr.Button("πŸ’» Coding", size="lg", variant="secondary")
270
+ preset_knowledge = gr.Button("🧠 Knowledge", size="lg", variant="secondary")
271
+ preset_math = gr.Button("πŸ“ Math", size="lg", variant="secondary")
272
+ preset_vision = gr.Button("πŸ‘οΈ Vision", size="lg", variant="secondary")
273
+ preset_agent = gr.Button("πŸ€– Agent", size="lg", variant="secondary")
274
+ preset_language = gr.Button("πŸ’¬ Language", size="lg", variant="secondary")
275
 
276
  # Filters Section
277
+ with gr.Accordion("πŸŽ›οΈ Filters & Settings", open=False):
278
  # Search, Size Range, and Refresh on same row
279
  with gr.Row():
280
  search_box = gr.Textbox(