Spaces:
Runtime error
Runtime error
How to create clean `self.tournament_results`
Browse files
server.py
CHANGED
@@ -259,7 +259,7 @@ class LeaderboardServer:
|
|
259 |
|
260 |
gr.Info('Running tournament...', duration=15)
|
261 |
with self.var_lock.rw:
|
262 |
-
self.tournament_results = {}
|
263 |
for submission_id in self.submission_ids:
|
264 |
with self.var_lock.ro:
|
265 |
file = self.submission_id_to_file[submission_id]
|
|
|
259 |
|
260 |
gr.Info('Running tournament...', duration=15)
|
261 |
with self.var_lock.rw:
|
262 |
+
self.tournament_results = {k: {} for k in self.submission_ids}
|
263 |
for submission_id in self.submission_ids:
|
264 |
with self.var_lock.ro:
|
265 |
file = self.submission_id_to_file[submission_id]
|