Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
alozowski
commited on
Commit
•
c4ca454
1
Parent(s):
fb35a84
fix round columns
Browse files- src/display/utils.py +4 -1
- src/populate.py +1 -0
src/display/utils.py
CHANGED
@@ -110,7 +110,10 @@ auto_eval_column_dict.append(
|
|
110 |
auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
111 |
auto_eval_column_dict.append(["not_flagged", ColumnContent, ColumnContent("Flagged", "bool", False, hidden=True)])
|
112 |
auto_eval_column_dict.append(["moe", ColumnContent, ColumnContent("MoE", "bool", False, hidden=True)])
|
113 |
-
|
|
|
|
|
|
|
114 |
auto_eval_column_dict.append(["use_chat_template", ColumnContent, ColumnContent("Chat Template", "bool", False)])
|
115 |
auto_eval_column_dict.append(["maintainers_highlight", ColumnContent, ColumnContent("Maintainer's Highlight", "bool", False, hidden=True)])
|
116 |
|
|
|
110 |
auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
111 |
auto_eval_column_dict.append(["not_flagged", ColumnContent, ColumnContent("Flagged", "bool", False, hidden=True)])
|
112 |
auto_eval_column_dict.append(["moe", ColumnContent, ColumnContent("MoE", "bool", False, hidden=True)])
|
113 |
+
# to rename
|
114 |
+
auto_eval_column_dict.append(["submission_date", ColumnContent, ColumnContent("submission_date", "date", False, hidden=True)])
|
115 |
+
auto_eval_column_dict.append(["upload_to_hub", ColumnContent, ColumnContent("upload_to_hub", "date", False, hidden=True)])
|
116 |
+
|
117 |
auto_eval_column_dict.append(["use_chat_template", ColumnContent, ColumnContent("Chat Template", "bool", False)])
|
118 |
auto_eval_column_dict.append(["maintainers_highlight", ColumnContent, ColumnContent("Maintainer's Highlight", "bool", False, hidden=True)])
|
119 |
|
src/populate.py
CHANGED
@@ -49,5 +49,6 @@ def get_leaderboard_df(leaderboard_dataset: Dataset, cols: list, benchmark_cols:
|
|
49 |
|
50 |
df = pd.DataFrame.from_records(all_data_json_list)
|
51 |
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
|
|
52 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
53 |
return df
|
|
|
49 |
|
50 |
df = pd.DataFrame.from_records(all_data_json_list)
|
51 |
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
52 |
+
df = df[cols].round(decimals=2)
|
53 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
54 |
return df
|