add check for duplicate submission.
Browse files- src/submission/submit.py +2 -2
src/submission/submit.py
CHANGED
@@ -193,8 +193,8 @@ def add_new_eval(
|
|
193 |
|
194 |
# ToDo: need open
|
195 |
# Check for duplicate submission
|
196 |
-
|
197 |
-
|
198 |
|
199 |
print("Creating huggingface/dataset eval file")
|
200 |
OUT_DIR = f"{EVAL_REQUESTS_PATH}/{user_name}"
|
|
|
193 |
|
194 |
# ToDo: need open
|
195 |
# Check for duplicate submission
|
196 |
+
if f"{model}_{revision}_{quant_type}_{precision}_{weight_dtype}_{compute_dtype}" in REQUESTED_MODELS:
|
197 |
+
return styled_warning("This model has been already submitted.")
|
198 |
|
199 |
print("Creating huggingface/dataset eval file")
|
200 |
OUT_DIR = f"{EVAL_REQUESTS_PATH}/{user_name}"
|