gokaygokay commited on
Commit
fd2a786
1 Parent(s): c231df5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -141,13 +141,6 @@ def generate_images(prompt, height, width, seed, num_images):
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=[
@@ -161,8 +154,13 @@ iface = gr.Interface(
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()
 
141
  imgs = show_images(sampled)
142
  return imgs
143
 
 
 
 
 
 
 
 
144
  iface = gr.Interface(
145
  fn=generate_images,
146
  inputs=[
 
154
  title="UltraPixel Image Generation",
155
  description="Generate high-resolution images using UltraPixel model.",
156
  theme='bethecloud/storj_theme',
157
+ examples=[
158
+ ["A close-up of a blooming peony, with layers of soft, pink petals, a delicate fragrance, and dewdrops glistening in the early morning light.", 1024, 1024, 42, 1],
159
+ ["A detailed view of a blooming magnolia tree, with large, white flowers and dark green leaves, set against a clear blue sky.", 1024, 1024, 42, 1],
160
+ ["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.", 1024, 1024, 42, 1],
161
+ ["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.", 1024, 1024, 42, 1]
162
+ ],
163
+ cache_examples=True
164
  )
165
 
166
  iface.launch()