Vaibhav Srivastav
commited on
Commit
·
6d3baac
1
Parent(s):
2d6e9d5
up
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -19,7 +19,7 @@ class EndpointHandler:
|
|
19 |
parameters = data.pop("parameters", None)
|
20 |
|
21 |
# preprocess
|
22 |
-
inputs = processor(
|
23 |
text=inputs,
|
24 |
padding=True,
|
25 |
return_tensors="pt",)
|
|
|
19 |
parameters = data.pop("parameters", None)
|
20 |
|
21 |
# preprocess
|
22 |
+
inputs = self.processor(
|
23 |
text=inputs,
|
24 |
padding=True,
|
25 |
return_tensors="pt",)
|