def __init__()

in sample-apps/custom-model/code/keras-model.py [0:0]


    def __init__(self):
        """Gets the service role and bucket name from CloudFormation stack outputs."""
        stack = cfn_client.describe_stacks(
            StackName='panorama-custom-model'
        )
        resources = {output['OutputKey']: output['OutputValue'] for output in stack['Stacks'][0]['Outputs']}
        self.SERVICE_ROLE_ARN=resources['roleArn']
        self.BUCKET_NAME=resources['bucketName']
        logger.info('Service role: {}'.format(self.SERVICE_ROLE_ARN))
        logger.info('Bucket: {}'.format(self.BUCKET_NAME))