File size: 308 Bytes
bf66e5a 366e62e bf66e5a 60ed7ab bf66e5a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from handler import EndpointHandler
# init handler
my_handler = EndpointHandler(path=".")
# prepare sample payload
payload = {"inputs": "I want to turn the next page of the"}
# test the handler
payload=my_handler(payload, additional_bad_words_ids=[[1234, 2345]])
# show results
print("output:", payload)
|