mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
prevent styles from adding an extra comma
This commit is contained in:
parent
8e13f54a1d
commit
1fcb48347d
@ -19,6 +19,9 @@ def load_styles(filename):
|
||||
|
||||
|
||||
def apply_style_text(style_text, prompt):
|
||||
if style_text == "":
|
||||
return prompt
|
||||
|
||||
return prompt + ", " + style_text if prompt else style_text
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user