woolbot commited on
Commit
0f9d313
·
1 Parent(s): 020c8e1

there once was a ship that put to sea

Browse files
Files changed (1) hide show
  1. routes/aminoOSRapi/main.py +1 -2
routes/aminoOSRapi/main.py CHANGED
@@ -27,8 +27,7 @@ def apipredict(request):
27
  with open(f'{name}.png', 'wb') as fp:
28
  fp.write(response.content)
29
 
30
- with open(f'{name}.png', 'rb') as fp:
31
- image = Image.open(fp)
32
 
33
  pix = image.load()
34
 
 
27
  with open(f'{name}.png', 'wb') as fp:
28
  fp.write(response.content)
29
 
30
+ image = Image.open(f'{name}.png')
 
31
 
32
  pix = image.load()
33