Lin0He commited on
Commit
8a90287
·
1 Parent(s): 101fd52

Upload pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -81,8 +81,8 @@ class PreTrainedPipeline():
81
  # process input
82
  inputs = data.pop("inputs", data)
83
  # process input text
84
- prediction = self.predict(inputs, self.model, self.tokenizer)
85
- return {"text":prediction}
86
 
87
 
88
 
 
81
  # process input
82
  inputs = data.pop("inputs", data)
83
  # process input text
84
+ prediction = predict(inputs, self.model, self.tokenizer)
85
+ return {"generated_text": prediction}
86
 
87
 
88