from handler import EndpointHandler | |
# init handler | |
my_handler = EndpointHandler(path=".") | |
# prepare sample payload | |
test_payload = {"gen_outputs_no_input_decoded": ["It was so scary.","I couldn't believe it.", "I started running."]} | |
# test the handler | |
test_pred=my_handler(test_payload) | |
# show results | |
print(test_pred) | |