Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ device="cpu"
|
|
| 19 |
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
| 20 |
pipe.to(device)
|
| 21 |
|
| 22 |
-
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery"
|
| 23 |
|
| 24 |
def infer(prompt):
|
| 25 |
|
|
|
|
| 19 |
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
| 20 |
pipe.to(device)
|
| 21 |
|
| 22 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery", columns=[2], height="auto")
|
| 23 |
|
| 24 |
def infer(prompt):
|
| 25 |
|