idolezal commited on
Commit
73f436c
1 Parent(s): e2d6d6c

Tuning the duration of some notifications

Browse files
Files changed (1) hide show
  1. server.py +3 -3
server.py CHANGED
@@ -953,7 +953,7 @@ class LeaderboardServer:
953
  with submit_lock(timeout=5) as acquired:
954
  if acquired:
955
  info_msg = 'Running tournament...'
956
- gr.Info(info_msg, duration=15)
957
  if do_submit:
958
  print(f"Locked `submit_lock` for {submission_id = }")
959
  print(info_msg)
@@ -978,10 +978,10 @@ class LeaderboardServer:
978
  self.pre_submit[submission_id] = pre_submit
979
 
980
  info_msg = 'Tournament finished!'
981
- gr.Info(info_msg, duration=5)
982
  if do_submit:
983
  print(info_msg)
984
- gr.Info("Uploading…", duration=5)
985
  self._upload_submission(pre_submit.submission_id, pre_submit.file)
986
  self._upload_tournament_results(pre_submit.tournament_results)
987
  self.update_leaderboard()
 
953
  with submit_lock(timeout=5) as acquired:
954
  if acquired:
955
  info_msg = 'Running tournament...'
956
+ gr.Info(info_msg, duration=40)
957
  if do_submit:
958
  print(f"Locked `submit_lock` for {submission_id = }")
959
  print(info_msg)
 
978
  self.pre_submit[submission_id] = pre_submit
979
 
980
  info_msg = 'Tournament finished!'
981
+ gr.Info(info_msg, duration=2)
982
  if do_submit:
983
  print(info_msg)
984
+ gr.Info("Uploading…", duration=40)
985
  self._upload_submission(pre_submit.submission_id, pre_submit.file)
986
  self._upload_tournament_results(pre_submit.tournament_results)
987
  self.update_leaderboard()