idolezal commited on
Commit
1c4df3c
β€’
1 Parent(s): 3d14210
Files changed (1) hide show
  1. app.py +1 -1
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),