rwitz commited on
Commit
afdcf87
·
verified ·
1 Parent(s): aae6734

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -297,7 +297,7 @@ def generate_leaderboard(collection):
297
  bot_name = row['bot_name']
298
  original_model = next(entry['original_model'] for entry in chatbots_data if entry['adapter'] == bot_name)
299
 
300
- category_data = {category: row['categories'].get(category, {}).get('elo_rating', '-') for category in categories}
301
 
302
  total_elo = sum(data['elo_rating'] for data in row['categories'].values() if 'elo_rating' in data)
303
  total_games = sum(data['games_played'] for data in row['categories'].values() if 'games_played' in data)
 
297
  bot_name = row['bot_name']
298
  original_model = next(entry['original_model'] for entry in chatbots_data if entry['adapter'] == bot_name)
299
 
300
+ category_data = {category: row['categories'].get(category, {}).get('elo_rating', 1200) for category in categories}
301
 
302
  total_elo = sum(data['elo_rating'] for data in row['categories'].values() if 'elo_rating' in data)
303
  total_games = sum(data['games_played'] for data in row['categories'].values() if 'games_played' in data)