Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ import pandas as pd
|
|
164 |
# Function to generate leaderboard data
|
165 |
def generate_leaderboard():
|
166 |
elo_ratings = get_user_elo_ratings() # Assuming this function returns a dict of {bot_name: elo_score}
|
167 |
-
leaderboard_data = pd.DataFrame(list(elo_ratings.iter(batch_size=
|
168 |
leaderboard_data = leaderboard_data.sort_values('ELO Score', ascending=False)
|
169 |
return leaderboard_data
|
170 |
|
|
|
164 |
# Function to generate leaderboard data
|
165 |
def generate_leaderboard():
|
166 |
elo_ratings = get_user_elo_ratings() # Assuming this function returns a dict of {bot_name: elo_score}
|
167 |
+
leaderboard_data = pd.DataFrame(list(elo_ratings.iter(batch_size=100)), columns=['Chatbot', 'ELO Score'])
|
168 |
leaderboard_data = leaderboard_data.sort_values('ELO Score', ascending=False)
|
169 |
return leaderboard_data
|
170 |
|