Lin0He commited on
Commit
5dc25dd
·
1 Parent(s): 57795b3

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -79,7 +79,7 @@ class PreTrainedPipeline():
79
 
80
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
81
  # process input
82
- #inputs = data.pop("inputs", data)
83
  # process input text
84
- prediction = model_infer( self.model, self.tokenizer, data+"TL;DR")
85
  return {"text": prediction}
 
79
 
80
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
81
  # process input
82
+ inputs = data.pop("inputs", data)
83
  # process input text
84
+ prediction = model_infer( self.model, self.tokenizer, inputs['text']+"TL;DR")
85
  return {"text": prediction}