aboutsummaryrefslogtreecommitdiff
path: root/modules/styles.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-30 18:56:23 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-30 18:56:23 +0300
commit3a876b16a92a23e5536d828c9217fda998e5d9c1 (patch)
tree4c00eac158773fff2ec8be7d32b2dcf54c2c0a1d /modules/styles.py
parent4794202ebc1f5184e0a15cc11d91ea9a23640f27 (diff)
parent5c0c778a65c8f89a85395fb10e32d3b35ea57196 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/styles.py')
-rw-r--r--modules/styles.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/styles.py b/modules/styles.py
index eeedcd08..d44dfc1a 100644
--- a/modules/styles.py
+++ b/modules/styles.py
@@ -53,6 +53,12 @@ class StyleDatabase:
negative_prompt = row.get("negative_prompt", "")
self.styles[row["name"]] = PromptStyle(row["name"], prompt, negative_prompt)
+ def get_style_prompts(self, styles):
+ return [self.styles.get(x, self.no_style).prompt for x in styles]
+
+ def get_negative_style_prompts(self, styles):
+ return [self.styles.get(x, self.no_style).negative_prompt for x in styles]
+
def apply_styles_to_prompt(self, prompt, styles):
return apply_styles_to_prompt(prompt, [self.styles.get(x, self.no_style).prompt for x in styles])