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