tonyassi commited on
Commit
16a282b
1 Parent(s): 6d2aa01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: