Dmitry Chaplinsky commited on
Commit
d22b664
1 Parent(s): d1b02d5

Almost almost there yet

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -19,4 +19,4 @@ class PreTrainedPipeline:
19
  A :obj:`str`
20
  """
21
  inputs = inputs.strip()
22
- return self.model.add_punctuation_capitalization([inputs])
 
19
  A :obj:`str`
20
  """
21
  inputs = inputs.strip()
22
+ return {"generated_text": [self.model.add_punctuation_capitalization(inputs)]}