Download test_run_handler.py from aekupor/talk-move-router: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/aekupor/talk-move-router/resolve/main/test_run_handler.py
- Command line
-
hf download hf://aekupor/talk-move-router/test_run_handler.py
-
curl -L -o test_run_handler.py https://huggingface.co/aekupor/talk-move-router/resolve/main/test_run_handler.py
297 Bytes
| from handler import EndpointHandler | |
| # init handler | |
| my_handler = EndpointHandler(path=".") | |
| # prepare sample payload | |
| payload = {"transcript_file": transcript, "chat_file": chat, "talk_move": talk_move} | |
| # test the handler | |
| response = my_handler(payload) | |
| # show results | |
| print("response", response) | |