Spaces:
Running
Running
Update pages/Entorno de Ejecución.py
Browse files
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
|
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:
|