Skip to content

Commit ecf8c67

Browse files
committed
fix some messages
1 parent 88e2cf1 commit ecf8c67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roboflow/util/model_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _get_processor_function(model_type: str) -> Callable:
3232
]
3333

3434
if not any(supported_model in model_type for supported_model in supported_models):
35-
raise (ValueError(f"Model type {model_type} not supported. Supported models are" f" {supported_models}"))
35+
raise (ValueError(f"Model type {model_type} not supported. Supported models are {supported_models}"))
3636

3737
if model_type.startswith(("paligemma", "paligemma2", "florence-2")):
3838
if any(model in model_type for model in ["paligemma", "paligemma2", "florence-2"]):
@@ -190,7 +190,7 @@ def _process_yolo(model_type: str, model_path: str, filename: str) -> str:
190190
)
191191
else:
192192
if file in ["model_artifacts.json", "state_dict.pt"]:
193-
raise (ValueError(f"File {file} not found. Please make sure to provide a" " valid model path."))
193+
raise (ValueError(f"File {file} not found. Please make sure to provide a valid model path."))
194194

195195
return zip_file_name
196196

@@ -310,6 +310,6 @@ def _process_yolonas(model_type: str, model_path: str, filename: str = "weights/
310310
)
311311
else:
312312
if file in ["model_artifacts.json", filename]:
313-
raise (ValueError(f"File {file} not found. Please make sure to provide a" " valid model path."))
313+
raise (ValueError(f"File {file} not found. Please make sure to provide a valid model path."))
314314

315315
return zip_file_name

0 commit comments

Comments
 (0)