Vaibhav Srivastav commited on
Commit
6d3baac
·
1 Parent(s): 2d6e9d5
Files changed (1) hide show
  1. 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",)