Prompt-Interrogation Concatiation Formatting Patch
Change to how the prompt is concatenated with the interrogation. This will prevent excessive commas when concatenating prompt and interrogation like f"{prompt}, {interrogation}"
pull/10/head
parent
261ac7c6e1
commit
b1163a5f66
|
|
@ -672,8 +672,7 @@ class Script(scripts.ScriptBuiltinUI):
|
|||
if prompt == "":
|
||||
prompt = interrogation
|
||||
elif in_front == "Append to prompt":
|
||||
interrogation = f", {interrogation}"
|
||||
prompt = f"{prompt}{interrogation}"
|
||||
prompt = f"{prompt.rstrip(', ')}, {interrogation}"
|
||||
else:
|
||||
prompt = f"{interrogation}{prompt}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue