idolezal commited on
Commit
e2d6d6c
β€’
1 Parent(s): 0e8ff48

Upload only when it could be changed

Browse files

Upload the map from "submission_id" to "model_title" to the dataset only
at the end of submiting.

Files changed (1) hide show
  1. server.py +1 -2
server.py CHANGED
@@ -407,8 +407,6 @@ class LeaderboardServer:
407
  self.submission_id_to_file = submission_id_to_file
408
  self.submission_id_to_model_title = submission_id_to_model_title
409
  self.submission_id_to_data = submission_id_to_data
410
-
411
- self._upload_submission_id_to_model_title()
412
 
413
  def results_dataset_integrity_check(self, solve=False):
414
  """
@@ -987,6 +985,7 @@ class LeaderboardServer:
987
  self._upload_submission(pre_submit.submission_id, pre_submit.file)
988
  self._upload_tournament_results(pre_submit.tournament_results)
989
  self.update_leaderboard()
 
990
  print(f"Unlocked `submit_lock` for {submission_id = }")
991
 
992
  break
 
407
  self.submission_id_to_file = submission_id_to_file
408
  self.submission_id_to_model_title = submission_id_to_model_title
409
  self.submission_id_to_data = submission_id_to_data
 
 
410
 
411
  def results_dataset_integrity_check(self, solve=False):
412
  """
 
985
  self._upload_submission(pre_submit.submission_id, pre_submit.file)
986
  self._upload_tournament_results(pre_submit.tournament_results)
987
  self.update_leaderboard()
988
+ self._upload_submission_id_to_model_title() # need to be after update_leaderboard()
989
  print(f"Unlocked `submit_lock` for {submission_id = }")
990
 
991
  break