Ejemplo n.º 1
0
def inference_request() -> InferenceRequest:
    payload_path = os.path.join(TESTDATA_PATH, "inference-request.json")
    return InferenceRequest.parse_file(payload_path)
Ejemplo n.º 2
0
def inference_request(model_settings: ModelSettings) -> InferenceRequest:
    payload_path = os.path.join(TESTDATA_PATH, "inference-request.json")
    inference_request = InferenceRequest.parse_file(payload_path)
    return codec_middleware(inference_request, model_settings)