Aaron Mueller commited on
Commit
9134b9b
·
1 Parent(s): d162626
Files changed (1) hide show
  1. src/submission/submit.py +5 -8
src/submission/submit.py CHANGED
@@ -54,14 +54,11 @@ def add_new_eval(
54
  out_message += styled_warning("Could not get your model information. The leaderboard entry will not have a link to its HF repo.") + "<br>"
55
  print("Made it after 1")
56
 
57
- modelcard_OK, error_msg = check_model_card(model_name)
58
- if not modelcard_OK:
59
- out_message += styled_warning(error_msg) + "<br>"
60
-
61
- print("Made it after 2")
62
-
63
- predictions_OK, error_msg = is_valid_predictions(predictions)
64
- if not predictions_OK:
65
  return styled_error(error_msg) + "<br>"
66
 
67
  print("Made it after 3")
 
54
  out_message += styled_warning("Could not get your model information. The leaderboard entry will not have a link to its HF repo.") + "<br>"
55
  print("Made it after 1")
56
 
57
+ try:
58
+ predictions_OK, error_msg = is_valid_predictions(predictions)
59
+ if not predictions_OK:
60
+ return styled_error(error_msg) + "<br>"
61
+ except:
 
 
 
62
  return styled_error(error_msg) + "<br>"
63
 
64
  print("Made it after 3")