Spaces:
Running
Running
Set duration==None in gr.Warning()
Browse files
app.py
CHANGED
@@ -58,15 +58,8 @@ def process_submission(*inputs):
|
|
58 |
validate_submission_inputs(**inputs)
|
59 |
metadata = SUBMISSION_INPUTS - {"submission_file"}
|
60 |
metadata = {key: inputs[key] for key in metadata}
|
61 |
-
|
62 |
-
gr.Info('Submission valid, running tournament...')
|
63 |
|
64 |
-
gr.Info(
|
65 |
-
gr.Warning("It's a try...", duration=None)
|
66 |
-
try:
|
67 |
-
raise gr.Error("It's a try...", duration=None)
|
68 |
-
except gr.Error:
|
69 |
-
pass
|
70 |
|
71 |
leaderboard_server.prepare_model_for_submission(inputs["submission_file"], metadata)
|
72 |
except ValueError as err:
|
@@ -80,7 +73,7 @@ def process_submission(*inputs):
|
|
80 |
gr.update(visible=False),
|
81 |
)
|
82 |
except Exception as err:
|
83 |
-
gr.Warning(str(err))
|
84 |
return (
|
85 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|
86 |
gr.update(visible=False),
|
|
|
58 |
validate_submission_inputs(**inputs)
|
59 |
metadata = SUBMISSION_INPUTS - {"submission_file"}
|
60 |
metadata = {key: inputs[key] for key in metadata}
|
|
|
|
|
61 |
|
62 |
+
gr.Info('Submission valid, running tournament...')
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
leaderboard_server.prepare_model_for_submission(inputs["submission_file"], metadata)
|
65 |
except ValueError as err:
|
|
|
73 |
gr.update(visible=False),
|
74 |
)
|
75 |
except Exception as err:
|
76 |
+
gr.Warning(str(err), duration=None)
|
77 |
return (
|
78 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|
79 |
gr.update(visible=False),
|