cron-inference/lambda-handler.py [15:24]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    print("Calling Sagemaker endpoint")
    response = client.invoke_endpoint(
        EndpointName=os.environ['endpoint_name'],
        Body=os.environ['input_data'],
        ContentType=obj['Body'].read())
    
    return {
        'statusCode': 200,
        'body': json.loads(response['Body'].read())
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kinesis-inference/lambda-handler.py [15:24]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    print("Calling Sagemaker endpoint")
    response = client.invoke_endpoint(
        EndpointName=os.environ['endpoint_name'],
        Body=os.environ['input_data'],
        ContentType=obj['Body'].read())
    
    return {
        'statusCode': 200,
        'body': json.loads(response['Body'].read())
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



