ash123 commited on
Commit
651e0b3
1 Parent(s): b51c016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,7 +63,7 @@ def generate_image(prompt: str, negative_prompt: str = "", inference_steps: int
63
 
64
  images = images.reshape((num_samples,) + images.shape[-3:])
65
  images = pipeline.numpy_to_pil(images)
66
- return images[0]
67
 
68
  examples = [
69
  ["A watercolor painting of a bird"],
@@ -274,7 +274,7 @@ with block as demo:
274
  )
275
  btn = gr.Button("Generate image", label="Primary Button", variant="primary")
276
 
277
- gallery = gr.Image(
278
  label="Generated images", show_label=False, elem_id="gallery"
279
  ).style(height="auto")
280
 
 
63
 
64
  images = images.reshape((num_samples,) + images.shape[-3:])
65
  images = pipeline.numpy_to_pil(images)
66
+ return images
67
 
68
  examples = [
69
  ["A watercolor painting of a bird"],
 
274
  )
275
  btn = gr.Button("Generate image", label="Primary Button", variant="primary")
276
 
277
+ gallery = gr.Gallery(
278
  label="Generated images", show_label=False, elem_id="gallery"
279
  ).style(height="auto")
280