Spaces:
Runtime error
Runtime error
Remove auto-update
Browse files
app.py
CHANGED
@@ -22,18 +22,17 @@ 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 |
-
|
37 |
def update_elos():
|
38 |
matchmaking.read_history()
|
39 |
matchmaking.compute_elo()
|
|
|
22 |
api = HfApi()
|
23 |
|
24 |
|
25 |
+
scheduler = BackgroundScheduler()
|
26 |
+
scheduler.add_job(func=init_matchmaking, trigger="interval", seconds=60)
|
27 |
+
scheduler.start()
|
28 |
+
|
29 |
+
|
30 |
def get_elo_data() -> pd.DataFrame:
|
31 |
repo.git_pull()
|
32 |
data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
|
33 |
return data
|
34 |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
def update_elos():
|
37 |
matchmaking.read_history()
|
38 |
matchmaking.compute_elo()
|