Vaibhav Srivastav commited on
Commit
6388023
1 Parent(s): 6d3baac
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -20,7 +20,7 @@ class EndpointHandler:
20
 
21
  # preprocess
22
  inputs = self.processor(
23
- text=inputs,
24
  padding=True,
25
  return_tensors="pt",)
26
 
 
20
 
21
  # preprocess
22
  inputs = self.processor(
23
+ text=[inputs],
24
  padding=True,
25
  return_tensors="pt",)
26