add styles to extra networks

This commit is contained in:
Vladimir Mandic
2023-09-03 15:00:48 -04:00
parent cbe779b541
commit d41baddf50
21 changed files with 225 additions and 95 deletions
+1
View File
@@ -23,6 +23,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
"hash": checkpoint.shorthash,
"preview": self.find_preview(path),
"description": self.find_description(path),
"info": self.find_info(path),
"search_term": f'{self.search_terms_from_path(checkpoint.filename)} {(checkpoint.sha256 or "")} /{checkpoint.type}/',
"onclick": '"' + html.escape(f"""return selectCheckpoint({json.dumps(name)})""") + '"',
"local_preview": f"{path}.{shared.opts.samples_format}",