poiccard commited on
Commit
377bbc3
1 Parent(s): f7a3240

Update handler.py

Browse files
Files changed (1) hide show
  1. 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]}]