File size: 320 Bytes
ed79aed
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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)