TheXeos commited on
Commit
e50ab51
β€’
1 Parent(s): 9a866e7

Test auto update

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -21,8 +21,16 @@ repo = Repository(
21
  matchmaking = Matchmaking()
22
  api = HfApi()
23
 
 
 
 
 
 
 
 
24
  scheduler = BackgroundScheduler()
25
  scheduler.add_job(func=init_matchmaking, trigger="interval", seconds=60)
 
26
  scheduler.start()
27
 
28
 
@@ -32,12 +40,6 @@ def update_elos():
32
  matchmaking.save_elo_data()
33
 
34
 
35
- def get_elo_data() -> pd.DataFrame:
36
- repo.git_pull()
37
- data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
38
- return data
39
-
40
-
41
  with gr.Blocks() as block:
42
  gr.Markdown(f"""
43
  # πŸ† The Deep Reinforcement Learning Course Leaderboard πŸ†
 
21
  matchmaking = Matchmaking()
22
  api = HfApi()
23
 
24
+
25
+ def get_elo_data() -> pd.DataFrame:
26
+ repo.git_pull()
27
+ data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
28
+ return data
29
+
30
+
31
  scheduler = BackgroundScheduler()
32
  scheduler.add_job(func=init_matchmaking, trigger="interval", seconds=60)
33
+ scheduler.add_job(func=get_elo_data, trigger="interval", seconds=60)
34
  scheduler.start()
35
 
36
 
 
40
  matchmaking.save_elo_data()
41
 
42
 
 
 
 
 
 
 
43
  with gr.Blocks() as block:
44
  gr.Markdown(f"""
45
  # πŸ† The Deep Reinforcement Learning Course Leaderboard πŸ†