diff --git a/invokeai/app/services/model_install/model_install_default.py b/invokeai/app/services/model_install/model_install_default.py index 089acf442f..903fe41b08 100644 --- a/invokeai/app/services/model_install/model_install_default.py +++ b/invokeai/app/services/model_install/model_install_default.py @@ -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()