diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 21:51:07 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 21:51:07 +0000 |
commit | 1fcb48347d2a738dad9562d4d6f07fb633a3a1b9 (patch) | |
tree | 039177e0796e9c103d307e0a99f3facae59cb803 | |
parent | 8e13f54a1d930b7354a077a0ad73dea8a86a7b97 (diff) | |
download | stable-diffusion-webui-gfx803-1fcb48347d2a738dad9562d4d6f07fb633a3a1b9.tar.gz stable-diffusion-webui-gfx803-1fcb48347d2a738dad9562d4d6f07fb633a3a1b9.tar.bz2 stable-diffusion-webui-gfx803-1fcb48347d2a738dad9562d4d6f07fb633a3a1b9.zip |
prevent styles from adding an extra comma
-rw-r--r-- | modules/styles.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/styles.py b/modules/styles.py index 58fb7d75..85b78fad 100644 --- a/modules/styles.py +++ b/modules/styles.py @@ -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
|