Update handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -36,5 +36,6 @@ class EndpointHandler():
|
|
36 |
generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
|
37 |
)[0]
|
38 |
final_response = response.split("### Response: [|AI|]")
|
|
|
39 |
|
40 |
-
return final_response
|
|
|
36 |
generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
|
37 |
)[0]
|
38 |
final_response = response.split("### Response: [|AI|]")
|
39 |
+
|
40 |
|
41 |
+
return [{"generated_text": final_response[-1]}]
|