Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ def infer(
|
|
| 123 |
|
| 124 |
|
| 125 |
# Generate the image
|
| 126 |
-
|
| 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
|
| 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 = []
|