Skip to content

Commit

Permalink
fix: allow already download models to save in webui
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jun 2, 2023
1 parent c294f39 commit 168b08a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,7 @@ def save_config(self, args):
elif cfgkey == "alchemist_name" and value == "An Awesome Alchemist":
skipped_keys.append("alchemist_name")

# Merge the settings we have been passed into the old config,
# don't remove anything we don't understand
for key, value in args.items():
if key not in donekeys:
cfgkey = self._cfg(key.label)
config[cfgkey] = models_to_load if cfgkey == "models_to_load" else value
config["models_to_load"] = models_to_load
with open(WebUI.CONFIG_FILE, "wt", encoding="utf-8") as configfile:
yaml.safe_dump({k: v for k, v in config.items() if k not in skipped_keys}, configfile)

Expand Down

0 comments on commit 168b08a

Please sign in to comment.