gokaygokay commited on
Commit
c231df5
1 Parent(s): 3d07a10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -141,6 +141,13 @@ def generate_images(prompt, height, width, seed, num_images):
141
  imgs = show_images(sampled)
142
  return imgs
143
 
 
 
 
 
 
 
 
144
  iface = gr.Interface(
145
  fn=generate_images,
146
  inputs=[
@@ -153,7 +160,9 @@ iface = gr.Interface(
153
  outputs=gr.Gallery(label="Generated Images", columns=5, rows=2),
154
  title="UltraPixel Image Generation",
155
  description="Generate high-resolution images using UltraPixel model.",
156
- theme='bethecloud/storj_theme'
 
 
157
  )
158
 
159
  iface.launch()
 
141
  imgs = show_images(sampled)
142
  return imgs
143
 
144
+ example_prompts = [
145
+ "A close-up of a blooming peony, with layers of soft, pink petals, a delicate fragrance, and dewdrops glistening in the early morning light.",
146
+ "A detailed view of a blooming magnolia tree, with large, white flowers and dark green leaves, set against a clear blue sky.",
147
+ "A close-up portrait of a young woman with flawless skin, vibrant red lipstick, and wavy brown hair, wearing a vintage floral dress and standing in front of a blooming garden.",
148
+ "The image features a snow-covered mountain range with a large, snow-covered mountain in the background. The mountain is surrounded by a forest of trees, and the sky is filled with clouds. The scene is set during the winter season, with snow covering the ground and the trees."
149
+ ]
150
+
151
  iface = gr.Interface(
152
  fn=generate_images,
153
  inputs=[
 
160
  outputs=gr.Gallery(label="Generated Images", columns=5, rows=2),
161
  title="UltraPixel Image Generation",
162
  description="Generate high-resolution images using UltraPixel model.",
163
+ theme='bethecloud/storj_theme',
164
+ examples=example_prompts,
165
+ cache=True
166
  )
167
 
168
  iface.launch()