Spaces:
Running
Running
prithivMLmods
commited on
Commit
•
6e83649
1
Parent(s):
8fca030
Update app.py
Browse files
app.py
CHANGED
@@ -42,31 +42,30 @@ style_list = [
|
|
42 |
},
|
43 |
|
44 |
{
|
45 |
-
"name": "
|
46 |
"prompt": "hyper-realistic 8K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
47 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
48 |
},
|
49 |
|
50 |
{
|
51 |
-
"name": "
|
52 |
"prompt": "hyper-realistic 4K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
53 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
54 |
},
|
55 |
|
56 |
{
|
57 |
-
"name": "HDR
|
58 |
"prompt": "HDR photo of {prompt} . high dynamic range, vivid colors, sharp contrast, realistic, detailed, high resolution, professional",
|
59 |
"negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
|
60 |
},
|
61 |
|
62 |
-
|
63 |
{
|
64 |
"name": "Cinematic",
|
65 |
"prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
|
66 |
"negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
|
67 |
},
|
68 |
{
|
69 |
-
"name": "
|
70 |
"prompt": "cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed",
|
71 |
"negative_prompt": "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly",
|
72 |
},
|
@@ -81,25 +80,11 @@ style_list = [
|
|
81 |
"negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, Western comic style",
|
82 |
},
|
83 |
{
|
84 |
-
"name": "Digital
|
85 |
"prompt": "concept art {prompt} . digital artwork, illustrative, painterly, matte painting, highly detailed",
|
86 |
"negative_prompt": "photo, photorealistic, realism, ugly",
|
87 |
},
|
88 |
-
|
89 |
-
"name": "Pixel art",
|
90 |
-
"prompt": "pixel-art {prompt} . low-res, blocky, pixel art style, 8-bit graphics",
|
91 |
-
"negative_prompt": "sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic",
|
92 |
-
},
|
93 |
-
{
|
94 |
-
"name": "Fantasy art",
|
95 |
-
"prompt": "ethereal fantasy concept art of {prompt} . magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy",
|
96 |
-
"negative_prompt": "photographic, realistic, realism, 35mm film, dslr, cropped, frame, text, deformed, glitch, noise, noisy, off-center, deformed, cross-eyed, closed eyes, bad anatomy, ugly, disfigured, sloppy, duplicate, mutated, black and white",
|
97 |
-
},
|
98 |
-
{
|
99 |
-
"name": "Neonpunk",
|
100 |
-
"prompt": "neonpunk style {prompt} . cyberpunk, vaporwave, neon, vibes, vibrant, stunningly beautiful, crisp, detailed, sleek, ultramodern, magenta highlights, dark purple shadows, high contrast, cinematic, ultra detailed, intricate, professional",
|
101 |
-
"negative_prompt": "painting, drawing, illustration, glitch, deformed, mutated, cross-eyed, ugly, disfigured",
|
102 |
-
},
|
103 |
{
|
104 |
"name": "3D Model",
|
105 |
"prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
|
@@ -119,7 +104,7 @@ def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str
|
|
119 |
return p.replace("{prompt}", positive), n + negative
|
120 |
|
121 |
@spaces.GPU(enable_queue=True)
|
122 |
-
def
|
123 |
prompt: str,
|
124 |
negative_prompt: str = "",
|
125 |
style: str = DEFAULT_STYLE_NAME,
|
@@ -189,7 +174,7 @@ with gr.Blocks(css=css, theme="xiaobaiyuan/theme_brief") as demo:
|
|
189 |
gr.DuplicateButton(
|
190 |
value="Duplicate Space for private use",
|
191 |
elem_id="duplicate-button",
|
192 |
-
visible=
|
193 |
)
|
194 |
|
195 |
with gr.Group():
|
|
|
42 |
},
|
43 |
|
44 |
{
|
45 |
+
"name": "3840 x 2160",
|
46 |
"prompt": "hyper-realistic 8K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
47 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
48 |
},
|
49 |
|
50 |
{
|
51 |
+
"name": "2560 × 1440",
|
52 |
"prompt": "hyper-realistic 4K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
53 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
54 |
},
|
55 |
|
56 |
{
|
57 |
+
"name": "HDR",
|
58 |
"prompt": "HDR photo of {prompt} . high dynamic range, vivid colors, sharp contrast, realistic, detailed, high resolution, professional",
|
59 |
"negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
|
60 |
},
|
61 |
|
|
|
62 |
{
|
63 |
"name": "Cinematic",
|
64 |
"prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
|
65 |
"negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
|
66 |
},
|
67 |
{
|
68 |
+
"name": "Photo",
|
69 |
"prompt": "cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed",
|
70 |
"negative_prompt": "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly",
|
71 |
},
|
|
|
80 |
"negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, Western comic style",
|
81 |
},
|
82 |
{
|
83 |
+
"name": "Digital",
|
84 |
"prompt": "concept art {prompt} . digital artwork, illustrative, painterly, matte painting, highly detailed",
|
85 |
"negative_prompt": "photo, photorealistic, realism, ugly",
|
86 |
},
|
87 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
{
|
89 |
"name": "3D Model",
|
90 |
"prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
|
|
|
104 |
return p.replace("{prompt}", positive), n + negative
|
105 |
|
106 |
@spaces.GPU(enable_queue=True)
|
107 |
+
def stab(
|
108 |
prompt: str,
|
109 |
negative_prompt: str = "",
|
110 |
style: str = DEFAULT_STYLE_NAME,
|
|
|
174 |
gr.DuplicateButton(
|
175 |
value="Duplicate Space for private use",
|
176 |
elem_id="duplicate-button",
|
177 |
+
visible=True,
|
178 |
)
|
179 |
|
180 |
with gr.Group():
|