Weaita commited on
Commit
871a32e
·
1 Parent(s): d23bb0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -7,8 +7,6 @@ import tempfile
7
  def split_image(image):
8
  im = Image.fromarray(np.uint8(image))
9
 
10
- images = []
11
-
12
  # Obtiene las dimensiones de la imagen
13
  width, height = im.size
14
 
@@ -23,7 +21,6 @@ def split_image(image):
23
 
24
  with tempfile.NamedTemporaryFile(suffix='.png') as temp:
25
  region.save(temp.name)
26
- images.append(temp.name)
27
  zip.write(temp.name)
28
  temp.flush()
29
  temp.close()
 
7
  def split_image(image):
8
  im = Image.fromarray(np.uint8(image))
9
 
 
 
10
  # Obtiene las dimensiones de la imagen
11
  width, height = im.size
12
 
 
21
 
22
  with tempfile.NamedTemporaryFile(suffix='.png') as temp:
23
  region.save(temp.name)
 
24
  zip.write(temp.name)
25
  temp.flush()
26
  temp.close()