Extra networks: support .txt description sidecar file

This commit is contained in:
Aarni Koskela
2023-03-06 21:14:06 +02:00
parent 49b1dc5e07
commit 06f167da37
7 changed files with 31 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage):
"name": name,
"filename": path,
"preview": self._find_preview(path),
"description": self._find_description(path),
"search_term": self.search_terms_from_path(lora_on_disk.filename),
"prompt": json.dumps(f"<lora:{name}:") + " + opts.extra_networks_default_multiplier + " + json.dumps(">"),
"local_preview": path + ".png",