Update app.py
Browse files
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
|
| 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.
|
| 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 |
|