run ruff format

This commit is contained in:
ubawurinna 2024-07-05 15:10:15 +02:00
parent 15cf95cead
commit 2bff6c7bdf

View File

@ -36,10 +36,8 @@ class OvDetector(DetectionApi):
) )
detector_config.device = "GPU" detector_config.device = "GPU"
if(not os.path.isfile(detector_config.model.path)): if not os.path.isfile(detector_config.model.path):
logger.error( logger.error(f"OpenVino model file {detector_config.model.path} not found.")
f"OpenVino model file {detector_config.model.path} not found."
)
raise FileNotFoundError raise FileNotFoundError
self.interpreter = self.ov_core.compile_model( self.interpreter = self.ov_core.compile_model(