thoth-AI commited on
Commit
f30af1b
·
1 Parent(s): f49e3ec

Updated handler.py

Browse files
Files changed (1) hide show
  1. 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