def output_fn()

in sagemaker_notebook_instance/containers/model/entry_point.py [0:0]


def output_fn(prediction, response_content_type):
    assert (
        response_content_type == "application/json"
    ), "accept must be 'application/json'"
    response_body_str = json.dumps(prediction)
    return response_body_str