Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -303,7 +303,7 @@ def generate_leaderboard(collection):
|
|
303 |
total_games = sum(data['games_played'] for data in row['categories'].values() if 'games_played' in data)
|
304 |
avg_elo = total_elo / len(row['categories']) if len(row['categories']) > 0 else 0
|
305 |
|
306 |
-
leaderboard_data.append([original_model, avg_elo, total_games] + [category_data[category]round().astype(int) for category in categories])
|
307 |
|
308 |
columns = ['Chatbot', 'Avg ELO Score', 'Total Games Played'] + list(categories)
|
309 |
|
|
|
303 |
total_games = sum(data['games_played'] for data in row['categories'].values() if 'games_played' in data)
|
304 |
avg_elo = total_elo / len(row['categories']) if len(row['categories']) > 0 else 0
|
305 |
|
306 |
+
leaderboard_data.append([original_model, avg_elo, total_games] + [category_data[category].round().astype(int) for category in categories])
|
307 |
|
308 |
columns = ['Chatbot', 'Avg ELO Score', 'Total Games Played'] + list(categories)
|
309 |
|