Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def generate(
|
|
130 |
generator = generator,
|
131 |
num_images_per_prompt=1,
|
132 |
output_type="pil",
|
133 |
-
).images
|
134 |
|
135 |
return img, seed
|
136 |
|
@@ -254,11 +254,8 @@ with gr.Blocks(
|
|
254 |
|
255 |
run_button = gr.Button("Run")
|
256 |
|
257 |
-
result = gr.
|
258 |
-
label="Result",
|
259 |
-
columns=1,
|
260 |
-
height="512px",
|
261 |
-
preview=True,
|
262 |
show_label=False
|
263 |
)
|
264 |
with gr.Group():
|
|
|
130 |
generator = generator,
|
131 |
num_images_per_prompt=1,
|
132 |
output_type="pil",
|
133 |
+
).images[0]
|
134 |
|
135 |
return img, seed
|
136 |
|
|
|
254 |
|
255 |
run_button = gr.Button("Run")
|
256 |
|
257 |
+
result = gr.Image(
|
258 |
+
label="Result",
|
|
|
|
|
|
|
259 |
show_label=False
|
260 |
)
|
261 |
with gr.Group():
|