Spaces:
Running
Running
Aaron Mueller
commited on
Commit
·
9134b9b
1
Parent(s):
d162626
debugging
Browse files- 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 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
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")
|