Spaces:
Runtime error
Runtime error
abhinav-joshi
commited on
Commit
•
943a9a1
1
Parent(s):
3948397
fix
Browse files- app.py +1 -1
- src/display/utils.py +2 -2
app.py
CHANGED
@@ -94,7 +94,7 @@ def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
|
|
94 |
def select_columns(df: pd.DataFrame, columns: list) -> pd.DataFrame:
|
95 |
always_here_cols = [
|
96 |
# AutoEvalColumn.model_type_symbol.name,
|
97 |
-
AutoEvalColumn.
|
98 |
]
|
99 |
# We use COLS to maintain sorting
|
100 |
filtered_df = df[always_here_cols + [c for c in COLS if c in df.columns and c in columns]]
|
|
|
94 |
def select_columns(df: pd.DataFrame, columns: list) -> pd.DataFrame:
|
95 |
always_here_cols = [
|
96 |
# AutoEvalColumn.model_type_symbol.name,
|
97 |
+
AutoEvalColumn.team.name,
|
98 |
]
|
99 |
# We use COLS to maintain sorting
|
100 |
filtered_df = df[always_here_cols + [c for c in COLS if c in df.columns and c in columns]]
|
src/display/utils.py
CHANGED
@@ -26,8 +26,8 @@ class ColumnContent:
|
|
26 |
auto_eval_column_dict = []
|
27 |
# Init
|
28 |
# auto_eval_column_dict.append(["model_type_symbol", ColumnContent, ColumnContent("T", "str", True, never_hidden=True)])
|
29 |
-
|
30 |
-
auto_eval_column_dict.append(["team_name", ColumnContent, ColumnContent("
|
31 |
# Scores
|
32 |
auto_eval_column_dict.append(["average", ColumnContent, ColumnContent("Average ⬆️", "number", True)])
|
33 |
for task in Tasks:
|
|
|
26 |
auto_eval_column_dict = []
|
27 |
# Init
|
28 |
# auto_eval_column_dict.append(["model_type_symbol", ColumnContent, ColumnContent("T", "str", True, never_hidden=True)])
|
29 |
+
auto_eval_column_dict.append(["team", ColumnContent, ColumnContent("Team", "markdown", True, never_hidden=True)])
|
30 |
+
# auto_eval_column_dict.append(["team_name", ColumnContent, ColumnContent("team_name", "str", True)])
|
31 |
# Scores
|
32 |
auto_eval_column_dict.append(["average", ColumnContent, ColumnContent("Average ⬆️", "number", True)])
|
33 |
for task in Tasks:
|