Spaces:
Running
Running
Aaron Mueller
commited on
Commit
·
f10498b
1
Parent(s):
1417775
caps in col name
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def init_leaderboard(dataframe, track):
|
|
61 |
if dataframe is None or dataframe.empty:
|
62 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
63 |
# filter for correct track
|
64 |
-
dataframe = dataframe.loc[dataframe["
|
65 |
return Leaderboard(
|
66 |
value=dataframe,
|
67 |
datatype=[c.type for c in fields(AutoEvalColumn)],
|
|
|
61 |
if dataframe is None or dataframe.empty:
|
62 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
63 |
# filter for correct track
|
64 |
+
dataframe = dataframe.loc[dataframe["Track"].lower() == track.lower()]
|
65 |
return Leaderboard(
|
66 |
value=dataframe,
|
67 |
datatype=[c.type for c in fields(AutoEvalColumn)],
|