lenML commited on
Commit
353f94c
·
verified ·
1 Parent(s): 5af192e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,7 +123,7 @@ def infer(
123
 
124
 
125
  # Generate the image
126
- image = pipe(
127
  image=pil_images if len(pil_images) > 0 else None,
128
  prompt=prompt,
129
  height=height,
@@ -136,7 +136,7 @@ def infer(
136
  ).images
137
 
138
  # Return images, seed, and make button visible
139
- return image, seed, gr.update(visible=True)
140
 
141
  # --- Examples and UI Layout ---
142
  examples = []
 
123
 
124
 
125
  # Generate the image
126
+ images = pipe(
127
  image=pil_images if len(pil_images) > 0 else None,
128
  prompt=prompt,
129
  height=height,
 
136
  ).images
137
 
138
  # Return images, seed, and make button visible
139
+ return images[0], seed, gr.update(visible=True)
140
 
141
  # --- Examples and UI Layout ---
142
  examples = []