mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: ruff
This commit is contained in:
parent
1456c997fb
commit
ea7b7bcf40
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user