label update
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def fetch_and_format_leaderboard():
|
|
186 |
leaderboard.append({
|
187 |
"model": model_name,
|
188 |
"win_rate": win_rate,
|
189 |
-
"
|
190 |
})
|
191 |
|
192 |
# Sort the leaderboard by elo_rating in descending order
|
@@ -195,7 +195,7 @@ def fetch_and_format_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', '
|
199 |
]]
|
200 |
|
201 |
# Format the DataFrame as a string for display; you might adjust this part based on how Gradio expects the data
|
|
|
186 |
leaderboard.append({
|
187 |
"model": model_name,
|
188 |
"win_rate": win_rate,
|
189 |
+
"TrueSkill rating": elo_rating
|
190 |
})
|
191 |
|
192 |
# Sort the leaderboard by elo_rating in descending order
|
|
|
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', 'TrueSkill rating'
|
199 |
]]
|
200 |
|
201 |
# Format the DataFrame as a string for display; you might adjust this part based on how Gradio expects the data
|