poiccard commited on
Commit
624d54c
1 Parent(s): 9e4a80d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -36,7 +36,7 @@ class EndpointHandler():
36
  response = self.tokenizer.batch_decode(
37
  generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
38
  )[0]
39
- final_response = response.split("### Response: [|AI|]").json)
40
 
41
 
42
  return [{"generated_text": final_response[-1]}]
 
36
  response = self.tokenizer.batch_decode(
37
  generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
38
  )[0]
39
+ final_response = response.split("### Response: [|AI|]").json()
40
 
41
 
42
  return [{"generated_text": final_response[-1]}]