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 self, model_path: Path, config: Optional[Dict[str, Any]] = None, info: Optional[AnyModelConfig] = None
) -> str: ) -> str:
key = self._create_key() key = self._create_key()
if config and not config.get('key', None): if config and not config.get("key", None):
config['key'] = key config["key"] = key
info = info or ModelProbe.probe(model_path, config) info = info or ModelProbe.probe(model_path, config)
model_path = model_path.absolute() model_path = model_path.absolute()