Spaces:
Paused
Paused
Tuning the duration of some notifications
Browse files
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=
|
| 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=
|
| 982 |
if do_submit:
|
| 983 |
print(info_msg)
|
| 984 |
-
gr.Info("Uploading…", duration=
|
| 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()
|