prithivMLmods commited on
Commit
a69a3ff
·
verified ·
1 Parent(s): a13a1d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +98 -9
app.py CHANGED
@@ -49,16 +49,19 @@ if torch.cuda.is_available():
49
 
50
 
51
  style_list = [
52
- {
53
- "name": "(No style)",
54
- "prompt": "{prompt}",
55
- "negative_prompt": "",
56
- },
57
  {
58
  "name": "Cinematic",
59
  "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
60
  "negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
61
  },
 
 
 
 
 
 
 
62
  {
63
  "name": "Photographic",
64
  "prompt": "cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed",
@@ -99,6 +102,94 @@ style_list = [
99
  "prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
100
  "negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
101
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  ]
103
  styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
104
  STYLE_NAMES = list(styles.keys())
@@ -149,12 +240,10 @@ def generate(
149
  return image_paths, seed
150
 
151
  examples = [
152
- "Masterpiece, Stunning, Best quality, a captivating space-themed artwork featuring the ethereal beauty of swirling nebulas and twinkling stars with an astronaut in it dark, blue themed",
153
  "Space portal to another dimension, unreal engine 5, 8k resolution, trending on artstation, octane render, insanely detailed, hyperrealism extremely detailed epic masterwork",
154
- "A realistic, dramatic image of two computer monitors, one iMac Pro and one other monitor, sitting on a desk in a well-lit office. The desk is cluttered with papers and other objects. The image is shot with a wide-angle lens, giving a sense of space and scale. --ar 9:16",
155
- "A cat battle mage, sword and shild with runes, dramatic lighting, dynamic pose, dynamic camera, masterpiece, best quality, dark shadows, ((dark fantasy)), detailed, realistic, 8k uhd, high quality",
156
  "A galaxy with blue water, a red star and many planets in one view, in the style of digital fantasy nubelas and cosmos, light black and violet, realistic nubelas paintings, james paick, steve henderson, ue5, cosmic horror --ar 8:5",
157
- "General view of the interior of a spaceship with some windows to observe, planet mars outside, inside a man and a woman wearing futuristic uniforms, azure and beige color, realistic hyper-detailed rendering, hyper-realistic details, 32k uhd, masterpiece, photo, digital art, science fiction"
158
  ]
159
 
160
  css = '''
 
49
 
50
 
51
  style_list = [
52
+
 
 
 
 
53
  {
54
  "name": "Cinematic",
55
  "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
56
  "negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
57
  },
58
+
59
+ {
60
+ "name": "HDR",
61
+ "prompt": "HDR photo of {prompt} . high dynamic range, vivid colors, sharp contrast, realistic, detailed, high resolution, professional",
62
+ "negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
63
+ },
64
+
65
  {
66
  "name": "Photographic",
67
  "prompt": "cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed",
 
102
  "prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
103
  "negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
104
  },
105
+
106
+ {
107
+ "name": "Steampunk",
108
+ "prompt": "steampunk {prompt} . Victorian era, mechanical, gears, steam-powered, brass, intricate, detailed, retrofuturistic",
109
+ "negative_prompt": "modern, digital, plain, clean, simplistic, messy, ugly, deformed, low contrast",
110
+ },
111
+
112
+ {
113
+ "name": "Retro Futurism",
114
+ "prompt": "retro-futuristic {prompt} . 1960s sci-fi, sleek, bold colors, imaginative, space age, mid-century modern, detailed",
115
+ "negative_prompt": "realistic, modern, plain, clean, minimalist, messy, ugly, deformed",
116
+ },
117
+
118
+ {
119
+ "name": "Baroque",
120
+ "prompt": "baroque style {prompt} . ornate, dramatic, rich colors, contrast, grandeur, detailed, historical, 17th century",
121
+ "negative_prompt": "modern, plain, clean, minimalist, simplistic, ugly, deformed",
122
+ },
123
+
124
+ {
125
+ "name": "Surreal Art",
126
+ "prompt": "surreal art of {prompt} . dreamlike, abstract, otherworldly, bizarre, fantastical, imaginative, highly detailed, Salvador Dalí inspired",
127
+ "negative_prompt": "realistic, photographic, normal, plain, ordinary, ugly, deformed, low contrast",
128
+ },
129
+
130
+ {
131
+ "name": "Impressionist",
132
+ "prompt": "impressionist painting of {prompt} . vibrant, textured, brush strokes, light, movement, Monet inspired, painterly, colorful",
133
+ "negative_prompt": "realistic, photographic, detailed, digital, sharp, clean, cartoon, ugly, deformed",
134
+ },
135
+
136
+ {
137
+ "name": "Art Deco",
138
+ "prompt": "art deco style {prompt} . elegant, geometric, rich colors, decorative, 1920s, luxury, sophisticated, stylish, highly detailed",
139
+ "negative_prompt": "modern, plain, minimalist, messy, disorganized, ugly, deformed, low contrast",
140
+ },
141
+
142
+ {
143
+ "name": "Minimalist",
144
+ "prompt": "minimalist {prompt} . clean, simple, sparse, monochrome, elegant, subtle, understated, high contrast",
145
+ "negative_prompt": "detailed, busy, cluttered, colorful, messy, noisy, ugly, deformed",
146
+ },
147
+
148
+ {
149
+ "name": "Abstract",
150
+ "prompt": "abstract {prompt} . expressive, non-representational, bold colors, shapes, forms, textures, highly detailed, modern art",
151
+ "negative_prompt": "realistic, photographic, detailed, recognizable, plain, ugly, deformed",
152
+ },
153
+
154
+ {
155
+ "name": "Gothic",
156
+ "prompt": "gothic {prompt} . dark, eerie, ornate, medieval, mysterious, detailed, shadowy, dramatic, gothic architecture",
157
+ "negative_prompt": "bright, colorful, modern, plain, clean, minimalist, ugly, deformed",
158
+ },
159
+
160
+ {
161
+ "name": "Vaporwave",
162
+ "prompt": "vaporwave {prompt} . neon colors, 80s aesthetics, retro, synthwave, glitch art, nostalgic, surreal, highly detailed",
163
+ "negative_prompt": "modern, plain, realistic, clean, simple, ugly, deformed",
164
+ },
165
+
166
+ {
167
+ "name": "HDR Urban",
168
+ "prompt": "HDR urban scene of {prompt} . high dynamic range, vibrant, detailed, sharp contrast, cityscape, realistic, high resolution, professional",
169
+ "negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
170
+ },
171
+
172
+ {
173
+ "name": "Classic Oil Painting",
174
+ "prompt": "classic oil painting of {prompt} . rich textures, brush strokes, warm colors, realistic, traditional, highly detailed, canvas texture",
175
+ "negative_prompt": "photographic, modern, simplistic, digital, cartoonish, ugly, deformed",
176
+ },
177
+
178
+ {
179
+ "name": "HDR Nature",
180
+ "prompt": "HDR nature scene of {prompt} . high dynamic range, vivid colors, detailed, sharp contrast, realistic, high resolution, professional",
181
+ "negative_prompt": "dull, low contrast, blurry, unrealistic, cartoonish, ugly, deformed",
182
+ },
183
+
184
+ {
185
+ "name": "(No style)",
186
+ "prompt": "{prompt}",
187
+ "negative_prompt": "",
188
+ },
189
+
190
+
191
+
192
+
193
  ]
194
  styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
195
  STYLE_NAMES = list(styles.keys())
 
240
  return image_paths, seed
241
 
242
  examples = [
243
+ "velma from scooby-doo, beautiful charismatic girl, showing piercing, athletic body, a woman an orange top, gorgeous figure, interesting shapes, full body shot, goth style, dark eye, in the style of jessica drossin, life-size figures, --ar 51:91 --s 1000",
244
  "Space portal to another dimension, unreal engine 5, 8k resolution, trending on artstation, octane render, insanely detailed, hyperrealism extremely detailed epic masterwork",
 
 
245
  "A galaxy with blue water, a red star and many planets in one view, in the style of digital fantasy nubelas and cosmos, light black and violet, realistic nubelas paintings, james paick, steve henderson, ue5, cosmic horror --ar 8:5",
246
+ "Cartoon 3D sunny bright Pixar-style image : super hero : full costume : cinematic --ar 68:128 --stylize 750 --v 5.2"
247
  ]
248
 
249
  css = '''