fixes crashes on merge in both WebUI and console (#2800)

- an inadvertent change to the model manager broke the merging functions
- corrected here - will be a hotfix
This commit is contained in:
Lincoln Stein 2023-02-24 14:58:06 -05:00 committed by GitHub
commit de6304b729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -624,7 +624,7 @@ class ModelManager(object):
self,
repo_or_path: Union[str, Path],
model_name: str = None,
model_description: str = None,
description: str = None,
vae: dict = None,
commit_to_conf: Path = None,
) -> bool:
@ -640,7 +640,7 @@ class ModelManager(object):
models.yaml file.
"""
model_name = model_name or Path(repo_or_path).stem
model_description = model_description or f"Imported diffusers model {model_name}"
model_description = description or f"Imported diffusers model {model_name}"
new_config = dict(
description=model_description,
vae=vae,