yessenzhar commited on
Commit
151b0f6
1 Parent(s): 5de4d5c

try bugfix

Browse files
Files changed (1) hide show
  1. postprocessing/1/model.py +2 -1
postprocessing/1/model.py CHANGED
@@ -169,7 +169,8 @@ class TritonPythonModel:
169
  st = self.token_map[token]
170
  if st[0] == '▁':
171
  return " " + st[1:]
172
- return st
 
173
 
174
  def _postprocessing(self, tokens_batch):
175
  outputs = []
 
169
  st = self.token_map[token]
170
  if st[0] == '▁':
171
  return " " + st[1:]
172
+ else:
173
+ return self.tokenizer.decode([token])
174
 
175
  def _postprocessing(self, tokens_batch):
176
  outputs = []