Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def tif_bytes_to_pil_image(tif_bytes):
|
|
71 |
bytes_io = io.BytesIO(tif_bytes)
|
72 |
|
73 |
# Open the BytesIO object as an Image, resize to 256
|
74 |
-
image = Image.open(bytes_io).convert("
|
75 |
image = image.resize((256, 256))
|
76 |
|
77 |
return image
|
|
|
71 |
bytes_io = io.BytesIO(tif_bytes)
|
72 |
|
73 |
# Open the BytesIO object as an Image, resize to 256
|
74 |
+
image = Image.open(bytes_io).convert("RGB")
|
75 |
image = image.resize((256, 256))
|
76 |
|
77 |
return image
|