Spaces:
Running
Running
Fix
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def process_submission(*inputs):
|
|
59 |
gr.Info('Submission valid, running local tournament...')
|
60 |
|
61 |
leaderboard_server.prepare_model_for_submission(inputs["submission_file"], metadata)
|
62 |
-
except ValueError as err:
|
63 |
gr.Warning(str(err))
|
64 |
return (
|
65 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|
|
|
59 |
gr.Info('Submission valid, running local tournament...')
|
60 |
|
61 |
leaderboard_server.prepare_model_for_submission(inputs["submission_file"], metadata)
|
62 |
+
except (ValueError, gr.Error) as err:
|
63 |
gr.Warning(str(err))
|
64 |
return (
|
65 |
gr.update(value='Pre-submit model', visible=True, interactive=True),
|