update: submit file
Browse files- 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
|
25 |
-
|
26 |
-
|
|
|
|
|
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")
|