Lin0He commited on
Commit
bdb2bc4
·
1 Parent(s): 47f3d0e

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -81,8 +81,8 @@ class EndpointHandler():
81
  # process input
82
  inputs = data.pop("inputs", data)
83
  # process input text
84
- prediction = predict(inputs['text'], self.model, self.tokenizer)
85
- return {"generated_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 prediction
86
 
87
 
88