Vaibhav Srivastav
commited on
Commit
•
6388023
1
Parent(s):
6d3baac
up
Browse files- 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 |
|