Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def get_user_elo_ratings():
|
|
32 |
dataset = load_dataset("rwitz/mistral-elo-ratings", download_mode="force_redownload")
|
33 |
global_elo_ratings = dataset['train'] # or the relevant split
|
34 |
except:
|
35 |
-
global_elo_ratings=Dataset.from_dict({"bot_name":[],"elo_rating":[],"games_played":[]})
|
36 |
return global_elo_ratings
|
37 |
|
38 |
def update_elo_rating(new_rating,winner,loser):
|
|
|
32 |
dataset = load_dataset("rwitz/mistral-elo-ratings", download_mode="force_redownload")
|
33 |
global_elo_ratings = dataset['train'] # or the relevant split
|
34 |
except:
|
35 |
+
global_elo_ratings=Dataset.from_dict({"bot_name":["default"],"elo_rating":[1200],"games_played":[0]})
|
36 |
return global_elo_ratings
|
37 |
|
38 |
def update_elo_rating(new_rating,winner,loser):
|