Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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['
|
59 |
metric_names = leaderboard(CSV_RESULT_PATH).columns.tolist()
|
60 |
metrics_with_method = metric_names.copy()
|
61 |
-
metric_names.remove('
|
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 = ["
|
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'):
|