Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ uploaded_image = st.file_uploader("Cargar imagen")
|
|
17 |
if uploaded_image is not None:
|
18 |
|
19 |
# Convert the uploaded file to a PIL Image object
|
20 |
-
image = Image.open(
|
21 |
image = image.resize((178,218))
|
22 |
|
23 |
# Convert the PIL Image object to a NumPy array
|
|
|
17 |
if uploaded_image is not None:
|
18 |
|
19 |
# Convert the uploaded file to a PIL Image object
|
20 |
+
image = Image.open(uploaded_image).convert('RGB')
|
21 |
image = image.resize((178,218))
|
22 |
|
23 |
# Convert the PIL Image object to a NumPy array
|