Replace -artist- wildcards when building prompt with onlyartists==True. Don't prepend ', ' to prompts in automatic prompt separator mode
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user