Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def predict(
|
|
101 |
srgb_profile = ImageCms.createProfile("sRGB")
|
102 |
io_handle = io.BytesIO(icc_profile)
|
103 |
src_profile = ImageCms.ImageCmsProfile(io_handle)
|
104 |
-
input_image = ImageCms.profileToProfile(input_image
|
105 |
input_image.info.pop('icc_profile', None)
|
106 |
|
107 |
if size1 < size2:
|
|
|
101 |
srgb_profile = ImageCms.createProfile("sRGB")
|
102 |
io_handle = io.BytesIO(icc_profile)
|
103 |
src_profile = ImageCms.ImageCmsProfile(io_handle)
|
104 |
+
input_image = ImageCms.profileToProfile(input_image, src_profile, srgb_profile)
|
105 |
input_image.info.pop('icc_profile', None)
|
106 |
|
107 |
if size1 < size2:
|