Skip to content

Commit

Permalink
prevent styles from adding an extra comma
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Sep 9, 2022
1 parent 8e13f54 commit 1fcb483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1fcb483

Please sign in to comment.