Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -57,7 +57,7 @@ styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
|
57 |
style_names = list(styles.keys())
|
58 |
|
59 |
def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
|
60 |
-
p, n = styles.get(style_name,
|
61 |
return p.replace("{prompt}", positive), n + negative
|
62 |
|
63 |
|
|
|
57 |
style_names = list(styles.keys())
|
58 |
|
59 |
def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
|
60 |
+
p, n = styles.get(style_name, "Photographic")
|
61 |
return p.replace("{prompt}", positive), n + negative
|
62 |
|
63 |
|