Update app.py
Browse files
app.py
CHANGED
@@ -61,11 +61,9 @@ def generate(image_editor, prompt, neg_prompt, versions):
|
|
61 |
|
62 |
|
63 |
if (original_image_size[0] > original_image_size[1]):
|
64 |
-
original_image_size[0]
|
65 |
-
original_image_size[1] = original_image_size[1] * (1024/original_image_size[0])
|
66 |
else:
|
67 |
-
original_image_size[0]
|
68 |
-
original_image_size[1] = original_image_size[1] * (1024/original_image_size[1])
|
69 |
|
70 |
|
71 |
# Crop image to original aspect ratio
|
|
|
61 |
|
62 |
|
63 |
if (original_image_size[0] > original_image_size[1]):
|
64 |
+
original_image_size = ( original_image_size[0] * (1024/original_image_size[0]) , original_image_size[1] * (1024/original_image_size[0]))
|
|
|
65 |
else:
|
66 |
+
original_image_size = (original_image_size[0] * (1024/original_image_size[1]), original_image_size[1] * (1024/original_image_size[1]))
|
|
|
67 |
|
68 |
|
69 |
# Crop image to original aspect ratio
|