Update handler.py
Browse files- 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 |
-
|
|
|
|
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}]
|