from handler import EndpointHandler my_handler = EndpointHandler() with open("./handler_test.wav", "rb") as file: bytes_data = file.read() res = my_handler({"inputs": bytes_data}) print(res)