Shaltiel commited on
Commit
2440506
1 Parent(s): 5207f36

Revert "Removed need for license"

Browse files

This reverts commit 5207f363f7e281577087d7202d066b5a0832eaea.

Files changed (1) hide show
  1. 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: