jinhybr commited on
Commit
cda75d3
1 Parent(s): 05cb212

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -36,7 +36,7 @@ class EndpointHandler:
36
  image = data.pop("inputs", data)
37
 
38
  # process image
39
- encoding = self.processor(float(image), return_tensors="pt")
40
 
41
  # run prediction
42
  with torch.inference_mode():
 
36
  image = data.pop("inputs", data)
37
 
38
  # process image
39
+ encoding = self.processor(image, return_tensors="pt")
40
 
41
  # run prediction
42
  with torch.inference_mode():