Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -30,7 +30,7 @@ class EndpointHandler:
|
|
30 |
A :obj:`dict`:. base64 encoded image
|
31 |
"""
|
32 |
image = data.pop("inputs", data)
|
33 |
-
image = Image.open(BytesIO(image)).convert("RGB")
|
34 |
image = np.array(image)
|
35 |
image = image[:, :, ::-1] # RGB -> BGR
|
36 |
|
|
|
30 |
A :obj:`dict`:. base64 encoded image
|
31 |
"""
|
32 |
image = data.pop("inputs", data)
|
33 |
+
# image = Image.open(BytesIO(image)).convert("RGB")
|
34 |
image = np.array(image)
|
35 |
image = image[:, :, ::-1] # RGB -> BGR
|
36 |
|