akhaliq HF staff commited on
Commit
9287636
1 Parent(s): d08cd46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def resize_img(img1,img2):
37
  img_target_size = Image.open(img1)
38
  img_to_resize = resize_and_crop(
39
  img2,
40
- (image_target_size.size[0],image_target_size.size[1]), #set width and height to match img1
41
  crop_origin="middle"
42
  )
43
  img_to_resize.save('resized_img2.png')
 
37
  img_target_size = Image.open(img1)
38
  img_to_resize = resize_and_crop(
39
  img2,
40
+ (img_target_size.size[0],img_target_size.size[1]), #set width and height to match img1
41
  crop_origin="middle"
42
  )
43
  img_to_resize.save('resized_img2.png')