Dmitry Chaplinsky commited on
Commit
4677e07
1 Parent(s): a6b9062

Fucking nightmare

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 ["generated_text": self.model.add_punctuation_capitalization([inputs])[0]]
 
19
  A :obj:`str`
20
  """
21
  inputs = inputs.strip()
22
+ return [{"generated_text": self.model.add_punctuation_capitalization([inputs])[0]}]