Spaces:
Running
Running
Prepare tournament results out of critical section
Browse files
server.py
CHANGED
@@ -182,8 +182,9 @@ class LeaderboardServer:
|
|
182 |
)
|
183 |
self.fetch_existing_models()
|
184 |
|
|
|
185 |
with self.var_lock.rw:
|
186 |
-
self.tournament_results =
|
187 |
|
188 |
def load_tournament_results(self):
|
189 |
metadata_rank_paths = os.path.join(self.local_leaderboard, "tournament.json")
|
|
|
182 |
)
|
183 |
self.fetch_existing_models()
|
184 |
|
185 |
+
tournament_results = self.load_tournament_results()
|
186 |
with self.var_lock.rw:
|
187 |
+
self.tournament_results = tournament_results
|
188 |
|
189 |
def load_tournament_results(self):
|
190 |
metadata_rank_paths = os.path.join(self.local_leaderboard, "tournament.json")
|