Update handler.py
Browse files- 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(
|
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():
|