Lin0He commited on
Commit
57795b3
·
1 Parent(s): 8a77317

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +3 -3
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, inputs+"TL;DR")
85
- return 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, data+"TL;DR")
85
+ return {"text": prediction}