Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,7 @@ def generate(image_editor, prompt, neg_prompt, versions):
|
|
65 |
mask_image=mask).images[0]
|
66 |
|
67 |
|
|
|
68 |
if (original_image_size[0] > original_image_size[1]):
|
69 |
original_image_size = ( original_image_size[0] * (1024/original_image_size[0]) , original_image_size[1] * (1024/original_image_size[0]))
|
70 |
else:
|
|
|
65 |
mask_image=mask).images[0]
|
66 |
|
67 |
|
68 |
+
# Make sure the longest side of image is 1024
|
69 |
if (original_image_size[0] > original_image_size[1]):
|
70 |
original_image_size = ( original_image_size[0] * (1024/original_image_size[0]) , original_image_size[1] * (1024/original_image_size[0]))
|
71 |
else:
|