Emirrv commited on
Commit
f65533b
·
verified ·
1 Parent(s): fbc4c40

update: submit file

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +5 -3
src/submission/submit.py CHANGED
@@ -21,9 +21,11 @@ def add_new_eval(model: str, weight_type: str, gguf_filename=None):
21
  except Exception:
22
  return styled_error("Could not get your model information.")
23
 
24
- if weight_type=="safetensors":
25
- if len(gguf_filename)!=0:
26
- return styled_error("GGUF filename should be empty when using safetensors.")
 
 
27
 
28
  # Seems good, creating the eval
29
  print("Adding new eval")
 
21
  except Exception:
22
  return styled_error("Could not get your model information.")
23
 
24
+ # Block gguf_filename input if weight_type is safetensors
25
+ if weight_type == "safetensors":
26
+ if gguf_filename:
27
+ return styled_error("GGUF filename should not be provided when using safetensors.")
28
+ gguf_filename = None # Ensure gguf_filename is None when safetensors is selected
29
 
30
  # Seems good, creating the eval
31
  print("Adding new eval")