chore: ruff

This commit is contained in:
psychedelicious 2024-02-24 19:01:30 +11:00
parent 1456c997fb
commit ea7b7bcf40

View File

@ -543,8 +543,8 @@ class ModelInstallService(ModelInstallServiceBase):
self, model_path: Path, config: Optional[Dict[str, Any]] = None, info: Optional[AnyModelConfig] = None
) -> str:
key = self._create_key()
if config and not config.get('key', None):
config['key'] = key
if config and not config.get("key", None):
config["key"] = key
info = info or ModelProbe.probe(model_path, config)
model_path = model_path.absolute()