Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ async def classify_vote(user_input):
|
|
22 |
payload = {
|
23 |
"inputs": user_input,
|
24 |
"parameters": {
|
25 |
-
"candidate_labels": "roleplay,conversation,
|
26 |
"multi_class": True
|
27 |
}
|
28 |
}
|
@@ -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]
|
307 |
|
308 |
columns = ['Chatbot', 'Avg ELO Score', 'Total Games Played'] + list(categories)
|
309 |
|
|
|
22 |
payload = {
|
23 |
"inputs": user_input,
|
24 |
"parameters": {
|
25 |
+
"candidate_labels": "roleplay,conversation,mathematics calculations,logic problems,creative writing,factual knowledge",
|
26 |
"multi_class": True
|
27 |
}
|
28 |
}
|
|
|
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] + [round(category_data[category],0) for category in categories])
|
307 |
|
308 |
columns = ['Chatbot', 'Avg ELO Score', 'Total Games Played'] + list(categories)
|
309 |
|