Spaces:
Runtime error
Runtime error
Aaron Mueller
commited on
Commit
•
938818f
1
Parent(s):
f10498b
caps in col name
Browse files
app.py
CHANGED
@@ -61,7 +61,9 @@ 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
|
|
|
|
|
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 |
+
print(dataframe["Track"])
|
65 |
+
print(track)
|
66 |
+
dataframe = dataframe.loc[dataframe["Track"] == track]
|
67 |
return Leaderboard(
|
68 |
value=dataframe,
|
69 |
datatype=[c.type for c in fields(AutoEvalColumn)],
|