Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def split_image(image):
|
|
17 |
box = (j*width/3, i*height/3, (j+1)*width/3, (i+1)*height/3)
|
18 |
region = im.crop(box)
|
19 |
region = region.convert("RGB")
|
20 |
-
region = region.resize((width//3, height//3), Image.ANTIALIAS)
|
21 |
|
22 |
with tempfile.NamedTemporaryFile(suffix='.png') as temp:
|
23 |
region.save(temp.name)
|
|
|
17 |
box = (j*width/3, i*height/3, (j+1)*width/3, (i+1)*height/3)
|
18 |
region = im.crop(box)
|
19 |
region = region.convert("RGB")
|
20 |
+
# region = region.resize((width//3, height//3), Image.ANTIALIAS)
|
21 |
|
22 |
with tempfile.NamedTemporaryFile(suffix='.png') as temp:
|
23 |
region.save(temp.name)
|