Spaces:
Running
Running
ycy
commited on
Commit
·
45a29a7
1
Parent(s):
2052910
app.py
CHANGED
@@ -69,10 +69,10 @@ LEADERBOARD_DF = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS,
|
|
69 |
def init_leaderboard(dataframe):
|
70 |
if dataframe is None or dataframe.empty:
|
71 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
72 |
-
dataframe.insert(0, '
|
73 |
return Leaderboard(
|
74 |
value=dataframe,
|
75 |
-
datatype=[c.type for c in fields(AutoEvalColumn)],
|
76 |
search_columns=[AutoEvalColumn.model.name],
|
77 |
hide_columns=["Available on the hub"],
|
78 |
filter_columns=[
|
|
|
69 |
def init_leaderboard(dataframe):
|
70 |
if dataframe is None or dataframe.empty:
|
71 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
72 |
+
dataframe.insert(0, '', range(1, len(dataframe) + 1))
|
73 |
return Leaderboard(
|
74 |
value=dataframe,
|
75 |
+
datatype=[int]+[c.type for c in fields(AutoEvalColumn)],
|
76 |
search_columns=[AutoEvalColumn.model.name],
|
77 |
hide_columns=["Available on the hub"],
|
78 |
filter_columns=[
|