Upload folder using huggingface_hub
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -23,7 +23,7 @@ class EndpointHandler():
|
|
23 |
Return:
|
24 |
A :obj:`list` | `dict`: will be serialized and returned
|
25 |
"""
|
26 |
-
start_ids = self.tokenizer.encode(data['inputs'], add_special_tokens=False
|
27 |
idx = (torch.tensor(start_ids)[None, ...])
|
28 |
# run generation
|
29 |
samples = []
|
|
|
23 |
Return:
|
24 |
A :obj:`list` | `dict`: will be serialized and returned
|
25 |
"""
|
26 |
+
start_ids = self.tokenizer.encode(data['inputs'], add_special_tokens=False)
|
27 |
idx = (torch.tensor(start_ids)[None, ...])
|
28 |
# run generation
|
29 |
samples = []
|