rwitz commited on
Commit
c103af9
·
1 Parent(s): c52911e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):