Updated handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -31,7 +31,7 @@ class EndpointHandler:
|
|
31 |
inputs = data.pop("inputs", data)
|
32 |
parameters = data.pop("parameters", {})
|
33 |
|
34 |
-
raw_images = inputs
|
35 |
|
36 |
inputs = self.processor(inputs, return_tensors="pt").to("cuda")
|
37 |
|
|
|
31 |
inputs = data.pop("inputs", data)
|
32 |
parameters = data.pop("parameters", {})
|
33 |
|
34 |
+
raw_images = Image.open(BytesIO(inputs))
|
35 |
|
36 |
inputs = self.processor(inputs, return_tensors="pt").to("cuda")
|
37 |
|