mrpintime commited on
Commit
c11d6c4
·
verified ·
1 Parent(s): ef30616

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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, device=self.device)
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 = []