Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ with block:
|
|
73 |
|
74 |
method_names = pd.read_csv(CSV_RESULT_PATH)['method_name'].unique().tolist()
|
75 |
metric_names = pd.read_csv(CSV_RESULT_PATH).columns.tolist()
|
76 |
-
metrics_with_method = metric_names
|
77 |
metric_names.remove('method_name') # Remove method_name from the metric options
|
78 |
|
79 |
# Leaderboard section with method and metric selectors
|
@@ -88,7 +88,7 @@ with block:
|
|
88 |
|
89 |
# Display the filtered leaderboard
|
90 |
baseline_value = get_baseline_df(method_names, metric_names)
|
91 |
-
baseline_header = ["method_name"] + metric_names
|
92 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
93 |
|
94 |
data_component = gr.components.Dataframe(
|
|
|
73 |
|
74 |
method_names = pd.read_csv(CSV_RESULT_PATH)['method_name'].unique().tolist()
|
75 |
metric_names = pd.read_csv(CSV_RESULT_PATH).columns.tolist()
|
76 |
+
metrics_with_method = metric_names.copy()
|
77 |
metric_names.remove('method_name') # Remove method_name from the metric options
|
78 |
|
79 |
# Leaderboard section with method and metric selectors
|
|
|
88 |
|
89 |
# Display the filtered leaderboard
|
90 |
baseline_value = get_baseline_df(method_names, metric_names)
|
91 |
+
baseline_header = ["method_name"] + metric_names
|
92 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
93 |
|
94 |
data_component = gr.components.Dataframe(
|