diff options
author | Aarni Koskela <akx@iki.fi> | 2023-03-06 19:14:06 +0000 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-03-06 19:15:33 +0000 |
commit | 06f167da37cd00ea8241bd2a6a3c12d8c5fb9eaf (patch) | |
tree | 725c73d1437be27703bcd04e9e0e86a067877290 /modules/ui_extra_networks_checkpoints.py | |
parent | 49b1dc5e07825e76c85ac4ac078fd63aa835e8bd (diff) | |
download | stable-diffusion-webui-gfx803-06f167da37cd00ea8241bd2a6a3c12d8c5fb9eaf.tar.gz stable-diffusion-webui-gfx803-06f167da37cd00ea8241bd2a6a3c12d8c5fb9eaf.tar.bz2 stable-diffusion-webui-gfx803-06f167da37cd00ea8241bd2a6a3c12d8c5fb9eaf.zip |
Extra networks: support .txt description sidecar file
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r-- | modules/ui_extra_networks_checkpoints.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index b712d12b..1deb785a 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -20,6 +20,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): "name": checkpoint.name_for_extra,
"filename": path,
"preview": self._find_preview(path),
+ "description": self._find_description(path),
"search_term": self.search_terms_from_path(checkpoint.filename) + " " + (checkpoint.sha256 or ""),
"onclick": '"' + html.escape(f"""return selectCheckpoint({json.dumps(name)})""") + '"',
"local_preview": path + ".png",
|