philschmid HF staff commited on
Commit
54d7f3a
1 Parent(s): 9f5bc78

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -30,4 +30,4 @@ class EndpointHandler:
30
  # postprocess the prediction
31
  prediction = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
32
 
33
- return {"generated_text": prediction}
30
  # postprocess the prediction
31
  prediction = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
32
 
33
+ return [{"generated_text": prediction}]