Spaces:
Sleeping
Sleeping
change output size
Browse files- app/model.py +1 -1
app/model.py
CHANGED
|
@@ -19,6 +19,6 @@ pipe.to("cpu")
|
|
| 19 |
@torch.inference_mode()
|
| 20 |
def generate_image(prompt):
|
| 21 |
|
| 22 |
-
image = pipe(prompt, height=
|
| 23 |
|
| 24 |
return image
|
|
|
|
| 19 |
@torch.inference_mode()
|
| 20 |
def generate_image(prompt):
|
| 21 |
|
| 22 |
+
image = pipe(prompt, height=512, width=512, num_inference_steps=10).images[0]
|
| 23 |
|
| 24 |
return image
|