rwitz commited on
Commit
0db72d6
·
1 Parent(s): 45d6f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,9 +30,9 @@ def get_user_elo_ratings():
30
  global global_elo_ratings
31
  try:
32
  dataset = load_dataset("rwitz/mistral-elo-ratings", download_mode="force_redownload")
 
33
  except:
34
- dataset=Dataset.from_dict({})
35
- global_elo_ratings = dataset['train'] # or the relevant split
36
  return global_elo_ratings
37
 
38
  def update_elo_rating(new_rating,winner,loser):
 
30
  global global_elo_ratings
31
  try:
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({})
 
36
  return global_elo_ratings
37
 
38
  def update_elo_rating(new_rating,winner,loser):