Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def generate(image: Image.Image, edit_prompt: str):
|
|
| 29 |
share_position_embedding = True,
|
| 30 |
)
|
| 31 |
|
| 32 |
-
img = image_resize(image,
|
| 33 |
w, h = img.size
|
| 34 |
img = img.resize(((w // 32) * 32, (h // 32) * 32))
|
| 35 |
img = torch.from_numpy((np.array(img) / 127.5) - 1)
|
|
|
|
| 29 |
share_position_embedding = True,
|
| 30 |
)
|
| 31 |
|
| 32 |
+
img = image_resize(image, 544)
|
| 33 |
w, h = img.size
|
| 34 |
img = img.resize(((w // 32) * 32, (h // 32) * 32))
|
| 35 |
img = torch.from_numpy((np.array(img) / 127.5) - 1)
|