Replace -artist- wildcards when building prompt with onlyartists==True. Don't prepend ', ' to prompts in automatic prompt separator mode

This commit is contained in:
Leander Neiß
2023-07-08 12:15:40 +02:00
parent 7df6613916
commit 73254a12f6
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -820,6 +820,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
if(onlyartists == True):
# replace artist wildcards
completeprompt = replacewildcard(completeprompt, insanitylevel, "-artist-", artistlist, False)
# clean it up
completeprompt = cleanup(completeprompt)
-1
View File
@@ -718,7 +718,6 @@ class Script(scripts.Script):
prefixpromptcopy = prefixprompt
if(ANDtoggle == "automatic"):
preppedprompt += prefixprompt + ", "
if(artist != "none"):
preppedprompt += build_dynamic_prompt(insanitylevel,subject,artist, imagetype, True, antistring)
if(subject == "humanoid"):