BearSean choco9966 commited on
Commit
6f83025
1 Parent(s): 0975aef

Update src/submission/submit.py (#52)

Browse files

- Update src/submission/submit.py (95761eecc10e82c976d2df3dee75aa39010d32fa)


Co-authored-by: HyeonwooKim <[email protected]>

Files changed (1) hide show
  1. src/submission/submit.py +4 -0
src/submission/submit.py CHANGED
@@ -81,6 +81,10 @@ def add_new_eval(
81
 
82
  model_size = get_model_size(model_info=model_info, precision=precision)
83
 
 
 
 
 
84
  # Were the model card and license filled?
85
  try:
86
  license = model_info.cardData["license"]
 
81
 
82
  model_size = get_model_size(model_info=model_info, precision=precision)
83
 
84
+ # Were the model size less than 30B?
85
+ if float(model_size) >= 30:
86
+ return styled_error("Please submit a model that is less than 30B")
87
+
88
  # Were the model card and license filled?
89
  try:
90
  license = model_info.cardData["license"]