Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -434,6 +434,9 @@ def get_leaderboard_data():
|
|
434 |
leaderboard_data["Rank"] = (
|
435 |
leaderboard_data["Elo Score"].rank(ascending=False).astype(int)
|
436 |
)
|
|
|
|
|
|
|
437 |
except:
|
438 |
# If no feedback exists, return an empty DataFrame
|
439 |
return pd.DataFrame(
|
|
|
434 |
leaderboard_data["Rank"] = (
|
435 |
leaderboard_data["Elo Score"].rank(ascending=False).astype(int)
|
436 |
)
|
437 |
+
|
438 |
+
# Place rank in the first column
|
439 |
+
leaderboard_data = leaderboard_data[["Rank"] + [col for col in leaderboard_data.columns if col != "Rank"]]
|
440 |
except:
|
441 |
# If no feedback exists, return an empty DataFrame
|
442 |
return pd.DataFrame(
|