Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Revert "Removed need for license"
Browse filesThis reverts commit 5207f363f7e281577087d7202d066b5a0832eaea.
- src/submission/submit.py +1 -2
src/submission/submit.py
CHANGED
@@ -66,8 +66,7 @@ def add_new_eval(
|
|
66 |
try:
|
67 |
license = model_info.cardData["license"]
|
68 |
except Exception:
|
69 |
-
license
|
70 |
-
# return styled_error("Please select a license for your model")
|
71 |
|
72 |
modelcard_OK, error_msg = check_model_card(model)
|
73 |
if not modelcard_OK:
|
|
|
66 |
try:
|
67 |
license = model_info.cardData["license"]
|
68 |
except Exception:
|
69 |
+
return styled_error("Please select a license for your model")
|
|
|
70 |
|
71 |
modelcard_OK, error_msg = check_model_card(model)
|
72 |
if not modelcard_OK:
|