frncscp commited on
Commit
ff640ab
1 Parent(s): 4293bc4

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +1 -1
pages/Entorno de Ejecución.py CHANGED
@@ -33,7 +33,7 @@ def preprocess(file_uploader, module = 'cv2'): #makes the uploaded image readabl
33
  if module == 'cv2':
34
  img = cv2.imdecode(img, cv2.IMREAD_COLOR)
35
  elif module == 'pil':
36
- img = Image.open(file_uploader.read())
37
  return img
38
 
39
  with cnn:
 
33
  if module == 'cv2':
34
  img = cv2.imdecode(img, cv2.IMREAD_COLOR)
35
  elif module == 'pil':
36
+ img = Image.open(file_uploader)
37
  return img
38
 
39
  with cnn: