Weaita commited on
Commit
b87dfab
·
1 Parent(s): b10993d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- images.append(region.save(temp.name))
 
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: