Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ def split_image(image):
|
|
21 |
region = region.resize((512, 512), Image.ANTIALIAS)
|
22 |
|
23 |
with tempfile.NamedTemporaryFile(suffix='.jpg') as temp:
|
24 |
-
|
|
|
25 |
|
26 |
|
27 |
with zipfile.ZipFile("images.zip", 'w') as zip:
|
|
|
21 |
region = region.resize((512, 512), Image.ANTIALIAS)
|
22 |
|
23 |
with tempfile.NamedTemporaryFile(suffix='.jpg') as temp:
|
24 |
+
region.save(temp.name)
|
25 |
+
images.append(temp.name)
|
26 |
|
27 |
|
28 |
with zipfile.ZipFile("images.zip", 'w') as zip:
|