tonyassi commited on
Commit
3bec293
1 Parent(s): 93b65f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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] = original_image_size[0] * (1024/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] = original_image_size[0] * (1024/original_image_size[1])
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