Update app.py
Browse files
app.py
CHANGED
@@ -41,17 +41,16 @@ style_list = [
|
|
41 |
"prompt": "hyper-realistic 4K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
42 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
43 |
},
|
44 |
-
|
45 |
{
|
46 |
-
"name": "
|
47 |
-
"prompt": "
|
48 |
-
"negative_prompt": "
|
49 |
},
|
50 |
]
|
51 |
|
52 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
53 |
STYLE_NAMES = list(styles.keys())
|
54 |
-
DEFAULT_STYLE_NAME = "
|
55 |
|
56 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
57 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
|
|
41 |
"prompt": "hyper-realistic 4K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
42 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
43 |
},
|
|
|
44 |
{
|
45 |
+
"name": "Anime",
|
46 |
+
"prompt": "anime artwork {prompt}. anime style, key visual, vibrant, studio anime, highly detailed",
|
47 |
+
"negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast",
|
48 |
},
|
49 |
]
|
50 |
|
51 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
52 |
STYLE_NAMES = list(styles.keys())
|
53 |
+
DEFAULT_STYLE_NAME = "Anime"
|
54 |
|
55 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
56 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|