File size: 485 Bytes
7800c33 1fbd45a 7800c33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from handler import EndpointHandler
# init handler
my_handler = EndpointHandler(path=".")
# prepare sample payload
example = {"inputs": [{"speaker_A": "I am quite excited how this will turn out",
"speaker_B": "I'm excited, too"}],
"parameters": {"speaker_A": "speaker_A",
"speaker_B": "speaker_B",
"student_min_words": 5
}}
# test the handler
print(my_handler(example))
|