cutycat2000x
commited on
Commit
•
1b3aa6b
1
Parent(s):
0669fe7
Update app.py
Browse files
app.py
CHANGED
@@ -55,177 +55,6 @@ if torch.cuda.is_available():
|
|
55 |
|
56 |
|
57 |
style_list = [
|
58 |
-
|
59 |
-
{
|
60 |
-
"name": "Cinematic",
|
61 |
-
"prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
|
62 |
-
"negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
|
63 |
-
},
|
64 |
-
|
65 |
-
{
|
66 |
-
"name": "8K",
|
67 |
-
"prompt": "hyper-realistic 8K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
68 |
-
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
69 |
-
},
|
70 |
-
|
71 |
-
{
|
72 |
-
"name": "4K",
|
73 |
-
"prompt": "hyper-realistic 4K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
74 |
-
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
75 |
-
},
|
76 |
-
|
77 |
-
{
|
78 |
-
"name": "HDR",
|
79 |
-
"prompt": "HDR photo of {prompt} . high dynamic range, vivid colors, sharp contrast, realistic, detailed, high resolution, professional",
|
80 |
-
"negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
|
81 |
-
},
|
82 |
-
|
83 |
-
{
|
84 |
-
"name": "Photographic",
|
85 |
-
"prompt": "cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed",
|
86 |
-
"negative_prompt": "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly",
|
87 |
-
},
|
88 |
-
|
89 |
-
{
|
90 |
-
"name": "Disney Style",
|
91 |
-
"prompt": "Disney style cartoon of {prompt} . whimsical, colorful, expressive, magical, highly detailed, animated movie style, family-friendly",
|
92 |
-
"negative_prompt": "realistic, photographic, detailed textures, dark, scary, ugly, deformed",
|
93 |
-
},
|
94 |
-
|
95 |
-
{
|
96 |
-
"name": "Anime",
|
97 |
-
"prompt": "anime artwork {prompt} . anime style, key visual, vibrant, studio anime, highly detailed",
|
98 |
-
"negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast",
|
99 |
-
},
|
100 |
-
{
|
101 |
-
"name": "Manga",
|
102 |
-
"prompt": "manga style {prompt} . vibrant, high-energy, detailed, iconic, Japanese comic style",
|
103 |
-
"negative_prompt": "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, Western comic style",
|
104 |
-
},
|
105 |
-
{
|
106 |
-
"name": "Digital Art",
|
107 |
-
"prompt": "concept art {prompt} . digital artwork, illustrative, painterly, matte painting, highly detailed",
|
108 |
-
"negative_prompt": "photo, photorealistic, realism, ugly",
|
109 |
-
},
|
110 |
-
{
|
111 |
-
"name": "Pixel art",
|
112 |
-
"prompt": "pixel-art {prompt} . low-res, blocky, pixel art style, 8-bit graphics",
|
113 |
-
"negative_prompt": "sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic",
|
114 |
-
},
|
115 |
-
{
|
116 |
-
"name": "Fantasy art",
|
117 |
-
"prompt": "ethereal fantasy concept art of {prompt} . magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy",
|
118 |
-
"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",
|
119 |
-
},
|
120 |
-
|
121 |
-
{
|
122 |
-
"name": "Cyberpunk",
|
123 |
-
"prompt": "cyberpunk style {prompt} . neon lights, futuristic, gritty, dark, highly detailed, urban, high contrast, high-tech, dystopian",
|
124 |
-
"negative_prompt": "natural, bright, cheerful, plain, simplistic, ugly, deformed",
|
125 |
-
},
|
126 |
-
|
127 |
-
{
|
128 |
-
"name": "Graffiti Art",
|
129 |
-
"prompt": "graffiti art of {prompt} . street art style, vibrant colors, bold lines, urban, edgy, highly detailed, spray paint texture",
|
130 |
-
"negative_prompt": "realistic, photographic, plain, clean, formal, ugly, deformed",
|
131 |
-
},
|
132 |
-
|
133 |
-
{
|
134 |
-
"name": "Neonpunk",
|
135 |
-
"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",
|
136 |
-
"negative_prompt": "painting, drawing, illustration, glitch, deformed, mutated, cross-eyed, ugly, disfigured",
|
137 |
-
},
|
138 |
-
{
|
139 |
-
"name": "3D Model",
|
140 |
-
"prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
|
141 |
-
"negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
|
142 |
-
},
|
143 |
-
|
144 |
-
{
|
145 |
-
"name": "Steampunk",
|
146 |
-
"prompt": "steampunk {prompt} . Victorian era, mechanical, gears, steam-powered, brass, intricate, detailed, retrofuturistic",
|
147 |
-
"negative_prompt": "modern, digital, plain, clean, simplistic, messy, ugly, deformed, low contrast",
|
148 |
-
},
|
149 |
-
|
150 |
-
{
|
151 |
-
"name": "Retro Futurism",
|
152 |
-
"prompt": "retro-futuristic {prompt} . 1960s sci-fi, sleek, bold colors, imaginative, space age, mid-century modern, detailed",
|
153 |
-
"negative_prompt": "realistic, modern, plain, clean, minimalist, messy, ugly, deformed",
|
154 |
-
},
|
155 |
-
|
156 |
-
{
|
157 |
-
"name": "Baroque",
|
158 |
-
"prompt": "baroque style {prompt} . ornate, dramatic, rich colors, contrast, grandeur, detailed, historical, 17th century",
|
159 |
-
"negative_prompt": "modern, plain, clean, minimalist, simplistic, ugly, deformed",
|
160 |
-
},
|
161 |
-
|
162 |
-
{
|
163 |
-
"name": "Surreal Art",
|
164 |
-
"prompt": "surreal art of {prompt} . dreamlike, abstract, otherworldly, bizarre, fantastical, imaginative, highly detailed, Salvador Dalí inspired",
|
165 |
-
"negative_prompt": "realistic, photographic, normal, plain, ordinary, ugly, deformed, low contrast",
|
166 |
-
},
|
167 |
-
|
168 |
-
{
|
169 |
-
"name": "Impressionist",
|
170 |
-
"prompt": "impressionist painting of {prompt} . vibrant, textured, brush strokes, light, movement, Monet inspired, painterly, colorful",
|
171 |
-
"negative_prompt": "realistic, photographic, detailed, digital, sharp, clean, cartoon, ugly, deformed",
|
172 |
-
},
|
173 |
-
|
174 |
-
{
|
175 |
-
"name": "Art Deco",
|
176 |
-
"prompt": "art deco style {prompt} . elegant, geometric, rich colors, decorative, 1920s, luxury, sophisticated, stylish, highly detailed",
|
177 |
-
"negative_prompt": "modern, plain, minimalist, messy, disorganized, ugly, deformed, low contrast",
|
178 |
-
},
|
179 |
-
|
180 |
-
{
|
181 |
-
"name": "Minimalist",
|
182 |
-
"prompt": "minimalist {prompt} . clean, simple, sparse, monochrome, elegant, subtle, understated, high contrast",
|
183 |
-
"negative_prompt": "detailed, busy, cluttered, colorful, messy, noisy, ugly, deformed",
|
184 |
-
},
|
185 |
-
|
186 |
-
{
|
187 |
-
"name": "Abstract",
|
188 |
-
"prompt": "abstract {prompt} . expressive, non-representational, bold colors, shapes, forms, textures, highly detailed, modern art",
|
189 |
-
"negative_prompt": "realistic, photographic, detailed, recognizable, plain, ugly, deformed",
|
190 |
-
},
|
191 |
-
|
192 |
-
{
|
193 |
-
"name": "Gothic",
|
194 |
-
"prompt": "gothic {prompt} . dark, eerie, ornate, medieval, mysterious, detailed, shadowy, dramatic, gothic architecture",
|
195 |
-
"negative_prompt": "bright, colorful, modern, plain, clean, minimalist, ugly, deformed",
|
196 |
-
},
|
197 |
-
|
198 |
-
{
|
199 |
-
"name": "Vaporwave",
|
200 |
-
"prompt": "vaporwave {prompt} . neon colors, 80s aesthetics, retro, synthwave, glitch art, nostalgic, surreal, highly detailed",
|
201 |
-
"negative_prompt": "modern, plain, realistic, clean, simple, ugly, deformed",
|
202 |
-
},
|
203 |
-
|
204 |
-
{
|
205 |
-
"name": "HDR Urban",
|
206 |
-
"prompt": "HDR urban scene of {prompt} . high dynamic range, vibrant, detailed, sharp contrast, cityscape, realistic, high resolution, professional",
|
207 |
-
"negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
|
208 |
-
},
|
209 |
-
|
210 |
-
{
|
211 |
-
"name": "Classic Oil Painting",
|
212 |
-
"prompt": "classic oil painting of {prompt} . rich textures, brush strokes, warm colors, realistic, traditional, highly detailed, canvas texture",
|
213 |
-
"negative_prompt": "photographic, modern, simplistic, digital, cartoonish, ugly, deformed",
|
214 |
-
},
|
215 |
-
|
216 |
-
{
|
217 |
-
"name": "HDR Nature",
|
218 |
-
"prompt": "HDR nature scene of {prompt} . high dynamic range, vivid colors, detailed, sharp contrast, realistic, high resolution, professional",
|
219 |
-
"negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
|
220 |
-
},
|
221 |
-
|
222 |
-
{
|
223 |
-
"name": "Modern Advertisement Logo",
|
224 |
-
"prompt": "high-resolution modern advertisement logo of {prompt} . sleek, minimalist, vibrant colors, clean lines, sharp, professional, eye-catching",
|
225 |
-
"negative_prompt": "vintage, messy, low resolution, blurry, dull, deformed, ugly",
|
226 |
-
|
227 |
-
},
|
228 |
-
|
229 |
{
|
230 |
"name": "(No style)",
|
231 |
"prompt": "{prompt}",
|
@@ -283,10 +112,15 @@ def generate(
|
|
283 |
return image_paths, seed
|
284 |
|
285 |
examples = [
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
|
|
|
|
|
|
|
|
|
|
290 |
]
|
291 |
|
292 |
css = '''
|
|
|
55 |
|
56 |
|
57 |
style_list = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
{
|
59 |
"name": "(No style)",
|
60 |
"prompt": "{prompt}",
|
|
|
112 |
return image_paths, seed
|
113 |
|
114 |
examples = [
|
115 |
+
'a smiling girl with sparkles in her eyes, walking in a garden, in the morning --style anime',
|
116 |
+
'firewatch landscape, Graphic Novel, Pastel Art, Poster, Golden Hour, Electric Colors, 4k, RGB, Geometric, Volumetric, Lumen Global Illumination, Ray Tracing Reflections, Twisted Rays, Glowing Edges, RTX --raw',
|
117 |
+
'Samsung Galaxy S9',
|
118 |
+
'cat, 4k, 8k, hyperrealistic, realistic, High-resolution, unreal engine 5, rtx, 16k, taken on a sony camera, Cinematic, dramatic lighting',
|
119 |
+
'cinimatic closeup of burning skull',
|
120 |
+
'frozen elsa',
|
121 |
+
'A rainbow tree, anime style, tree in focus',
|
122 |
+
'A cat holding a sign that reads "Hello World" in cursive text',
|
123 |
+
'A birthday card for "Meow"'
|
124 |
]
|
125 |
|
126 |
css = '''
|