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