mgyigit commited on
Commit
508ed01
1 Parent(s): c3045c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -55,10 +55,10 @@ with block:
55
 
56
  leaderboard = get_baseline_df(None, None) #get baseline leaderboard without filtering
57
 
58
- method_names = leaderboard['method_name'].unique().tolist()
59
  metric_names = leaderboard(CSV_RESULT_PATH).columns.tolist()
60
  metrics_with_method = metric_names.copy()
61
- metric_names.remove('method_name') # Remove method_name from the metric options
62
 
63
  # Leaderboard section with method and metric selectors
64
  leaderboard_method_selector = gr.CheckboxGroup(
@@ -70,7 +70,7 @@ with block:
70
 
71
  # Display the filtered leaderboard
72
  baseline_value = get_baseline_df(method_names, metric_names)
73
- baseline_header = ["method_name"] + metric_names
74
  baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
75
 
76
  with gr.Row(show_progress=True, variant='panel'):
 
55
 
56
  leaderboard = get_baseline_df(None, None) #get baseline leaderboard without filtering
57
 
58
+ method_names = leaderboard['Method'].unique().tolist()
59
  metric_names = leaderboard(CSV_RESULT_PATH).columns.tolist()
60
  metrics_with_method = metric_names.copy()
61
+ metric_names.remove('Method') # Remove method_name from the metric options
62
 
63
  # Leaderboard section with method and metric selectors
64
  leaderboard_method_selector = gr.CheckboxGroup(
 
70
 
71
  # Display the filtered leaderboard
72
  baseline_value = get_baseline_df(method_names, metric_names)
73
+ baseline_header = ["Method"] + metric_names
74
  baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
75
 
76
  with gr.Row(show_progress=True, variant='panel'):