Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def generate_image(prompt: str, negative_prompt: str = "", inference_steps: int
|
|
| 60 |
guidance_scale=float(guidance_scale),
|
| 61 |
jit=True,
|
| 62 |
).images
|
| 63 |
-
return image
|
| 64 |
|
| 65 |
examples = [
|
| 66 |
["A watercolor painting of a bird"],
|
|
@@ -271,9 +271,9 @@ with block as demo:
|
|
| 271 |
)
|
| 272 |
btn = gr.Button("Generate image", label="Primary Button", variant="primary")
|
| 273 |
|
| 274 |
-
gallery = gr.
|
| 275 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 276 |
-
)
|
| 277 |
|
| 278 |
|
| 279 |
with gr.Row():
|
|
|
|
| 60 |
guidance_scale=float(guidance_scale),
|
| 61 |
jit=True,
|
| 62 |
).images
|
| 63 |
+
return image[0]
|
| 64 |
|
| 65 |
examples = [
|
| 66 |
["A watercolor painting of a bird"],
|
|
|
|
| 271 |
)
|
| 272 |
btn = gr.Button("Generate image", label="Primary Button", variant="primary")
|
| 273 |
|
| 274 |
+
gallery = gr.Image(
|
| 275 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 276 |
+
)
|
| 277 |
|
| 278 |
|
| 279 |
with gr.Row():
|