add a slider for default value of added extra networks

This commit is contained in:
AUTOMATIC
2023-01-22 00:02:41 +03:00
parent 78f59a4e01
commit fe7a623e6b
5 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
import json
import os
import lora
@@ -26,7 +27,7 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage):
"name": name,
"filename": path,
"preview": preview,
"prompt": f"<lora:{name}:1.0>",
"prompt": json.dumps(f"<lora:{name}:") + " + opts.extra_networks_default_multiplier + " + json.dumps(">"),
"local_preview": path + ".png",
}