Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,6 +56,10 @@ def resize(img):
|
|
56 |
wsize=int(w*scale_ratio)
|
57 |
hsize=int(h*scale_ratio)
|
58 |
img = img.resize((wsize,hsize), Image.ANTIALIAS)
|
|
|
|
|
|
|
|
|
59 |
return img
|
60 |
|
61 |
|
|
|
56 |
wsize=int(w*scale_ratio)
|
57 |
hsize=int(h*scale_ratio)
|
58 |
img = img.resize((wsize,hsize), Image.ANTIALIAS)
|
59 |
+
w = img.size[0]
|
60 |
+
h = img.size[1]
|
61 |
+
img = img.crop(0, 0, w-w%8, h-h%8)
|
62 |
+
|
63 |
return img
|
64 |
|
65 |
|