gokaygokay commited on
Commit
e58293e
1 Parent(s): 1f81779

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,7 +139,7 @@ def generate_image(prompt, negative_prompt, seed, randomize_seed, width, height,
139
  height=height,
140
  num_images_per_prompt=num_images_per_prompt,
141
  generator=generator
142
- ).images[0]
143
 
144
  return image, seed
145
 
@@ -219,7 +219,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(primary_hue="blue", secondar
219
 
220
  with gr.Column(scale=1):
221
  with gr.Group(elem_classes="output-group"):
222
- output_image = gr.Image(label="Generated Image")
223
  final_prompt = gr.Textbox(label="Final Prompt Used")
224
  used_seed = gr.Number(label="Seed Used")
225
 
 
139
  height=height,
140
  num_images_per_prompt=num_images_per_prompt,
141
  generator=generator
142
+ ).images
143
 
144
  return image, seed
145
 
 
219
 
220
  with gr.Column(scale=1):
221
  with gr.Group(elem_classes="output-group"):
222
+ output_image = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
223
  final_prompt = gr.Textbox(label="Final Prompt Used")
224
  used_seed = gr.Number(label="Seed Used")
225