Download test_handler.py from beniaminp/bark-small: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/beniaminp/bark-small/resolve/main/test_handler.py
- Command line
-
hf download hf://beniaminp/bark-small/test_handler.py
-
curl -L -o test_handler.py https://huggingface.co/beniaminp/bark-small/resolve/main/test_handler.py
280 Bytes
| from handler import EndpointHandler | |
| # init handler | |
| my_handler = EndpointHandler() | |
| # prepare sample payload | |
| bark_inputs = { | |
| "inputs": "I am quite excited how this will turn out"} | |
| # test the handler | |
| outputs = my_handler(bark_inputs) | |
| # show results | |
| print("outputs", outputs) | |