sooh-j commited on
Commit
90c4e38
1 Parent(s): 2939c89

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -106,4 +106,5 @@ class EndpointHandler():
106
  result = {}
107
  text_output = self.processor.decode(out[0], skip_special_tokens=True)
108
  result["text_output"] = text_output
109
- return text_output
 
 
106
  result = {}
107
  text_output = self.processor.decode(out[0], skip_special_tokens=True)
108
  result["text_output"] = text_output
109
+ score = 0
110
+ return [{"answer":text_output,"score":score}]