update
Browse files
app.py
CHANGED
@@ -192,7 +192,7 @@ def fetch_and_format_leaderboard():
|
|
192 |
# Sort the leaderboard by elo_rating in descending order
|
193 |
leaderboard.sort(key=lambda x: x['win_rate'], reverse=True)
|
194 |
leaderboard_df = pd.DataFrame(leaderboard)
|
195 |
-
leaderboard_df['Rank'] = [1,2,3,4,5,6
|
196 |
|
197 |
# Reorder columns to match your requirement
|
198 |
leaderboard_df = leaderboard_df[['Rank', 'model', 'win_rate', 'elo_rating'
|
|
|
192 |
# Sort the leaderboard by elo_rating in descending order
|
193 |
leaderboard.sort(key=lambda x: x['win_rate'], reverse=True)
|
194 |
leaderboard_df = pd.DataFrame(leaderboard)
|
195 |
+
leaderboard_df['Rank'] = [1,2,3,4,5,6]#leaderboard_df['win_rate'].rank(method='max', ascending=False).astype(int)
|
196 |
|
197 |
# Reorder columns to match your requirement
|
198 |
leaderboard_df = leaderboard_df[['Rank', 'model', 'win_rate', 'elo_rating'
|