Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaya
commited on
Commit
·
2618358
1
Parent(s):
fd8845d
Correct quotes
Browse files
backend/app/services/models.py
CHANGED
@@ -414,7 +414,7 @@ class ModelService(HuggingFaceService):
|
|
414 |
for status, models in existing_models.items():
|
415 |
for model in models:
|
416 |
if model["name"] == model_data["model_id"] and model["revision"] == model_data["revision"]:
|
417 |
-
error_msg = f"Model {model_data['model_id']} revision {model_data[
|
418 |
logger.error(LogFormatter.error("Submission rejected", error_msg))
|
419 |
raise ValueError(error_msg)
|
420 |
|
|
|
414 |
for status, models in existing_models.items():
|
415 |
for model in models:
|
416 |
if model["name"] == model_data["model_id"] and model["revision"] == model_data["revision"]:
|
417 |
+
error_msg = f"Model {model_data['model_id']} revision {model_data['revision']} is already in the system with status: {status}"
|
418 |
logger.error(LogFormatter.error("Submission rejected", error_msg))
|
419 |
raise ValueError(error_msg)
|
420 |
|