Spaces:
Runtime error
Runtime error
Refactor GET_DEFAULT_CHECKBOX function to remove "Model Name" column
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def init_leaderboard(dataframes):
|
|
108 |
LEADERBOARD_DF = get_leaderboard_df(RESULTS_REPO)
|
109 |
# default_columns = [c.name for c in fields(AutoEvalColumn) if c.displayed_by_default]
|
110 |
default_columns = list(LEADERBOARD_DF[subset].columns)
|
111 |
-
default_columns.remove("Model Name")
|
112 |
|
113 |
return update_data(subset, None, default_columns), GET_DEFAULT_TEXTBOX(), GET_DEFAULT_CHECKBOX(subset)
|
114 |
|
|
|
108 |
LEADERBOARD_DF = get_leaderboard_df(RESULTS_REPO)
|
109 |
# default_columns = [c.name for c in fields(AutoEvalColumn) if c.displayed_by_default]
|
110 |
default_columns = list(LEADERBOARD_DF[subset].columns)
|
111 |
+
# default_columns.remove("Model Name")
|
112 |
|
113 |
return update_data(subset, None, default_columns), GET_DEFAULT_TEXTBOX(), GET_DEFAULT_CHECKBOX(subset)
|
114 |
|