mgyigit commited on
Commit
d77b45c
·
verified ·
1 Parent(s): 922b47b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -7
app.py CHANGED
@@ -350,7 +350,7 @@ with block:
350
  )
351
  vis_benchmark_type_selector = gr.Dropdown(
352
  choices=list(benchmark_specific_metrics.keys()),
353
- label="Benchmark Type",
354
  value=None,
355
  )
356
  with gr.Row():
@@ -359,15 +359,32 @@ with block:
359
  vis_aspect_type_selector = gr.Dropdown(choices=[], label="Aspect", visible=False)
360
  vis_dataset_selector = gr.Dropdown(choices=[], label="Dataset", visible=False)
361
  vis_single_metric_selector = gr.Dropdown(choices=[], label="Metric", visible=False)
362
- vis_method_selector = gr.CheckboxGroup(
363
- choices=method_names,
364
- label="Methods",
365
- value=method_names,
366
- interactive=True,
367
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  plot_button = gr.Button("Plot")
369
  with gr.Row(show_progress=True, variant='panel'):
370
  plot_output = gr.Image(label="Plot")
 
 
 
371
  plot_explanation = gr.Markdown(visible=False)
372
  # callbacks
373
  vis_benchmark_type_selector.change(
 
350
  )
351
  vis_benchmark_type_selector = gr.Dropdown(
352
  choices=list(benchmark_specific_metrics.keys()),
353
+ label="🧪 Benchmark Type",
354
  value=None,
355
  )
356
  with gr.Row():
 
359
  vis_aspect_type_selector = gr.Dropdown(choices=[], label="Aspect", visible=False)
360
  vis_dataset_selector = gr.Dropdown(choices=[], label="Dataset", visible=False)
361
  vis_single_metric_selector = gr.Dropdown(choices=[], label="Metric", visible=False)
362
+
363
+ base_method_names = [m for m in method_names if m in base_methods]
364
+ user_method_names = [m for m in method_names if m not in base_methods]
365
+
366
+ with gr.Accordion("📦 Base methods", open=False):
367
+ vis_method_selector_base = gr.CheckboxGroup(
368
+ choices=base_method_names,
369
+ label="Base Methods",
370
+ value=base_method_names, # default: all selected
371
+ interactive=True,
372
+ )
373
+
374
+ with gr.Accordion("🛠️ User-defined methods", open=False):
375
+ vis_method_selector_user = gr.CheckboxGroup(
376
+ choices=user_method_names,
377
+ label="User Methods",
378
+ value=[], # default: none selected
379
+ interactive=True,
380
+ )
381
+
382
  plot_button = gr.Button("Plot")
383
  with gr.Row(show_progress=True, variant='panel'):
384
  plot_output = gr.Image(label="Plot")
385
+
386
+ gr.Markdown("#### If a method name ends with **^**, it suggests potential suspicions of data leakage related to ***similarity***, ***function***, or ***family*** benchmarks.")
387
+
388
  plot_explanation = gr.Markdown(visible=False)
389
  # callbacks
390
  vis_benchmark_type_selector.change(