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

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
- (img_origin_size.size[0],img_origin_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
+ (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')