ml-images/efs/app.py [48:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@tracer.capture_lambda_handler
@metrics.log_metrics(capture_cold_start_metric=True)
@logger.inject_lambda_context(log_event=True)
def lambda_handler(event, context):

    body = json.loads(event['body'])
    
    model_type = body['model_type']
    question = body['question']
    context = body['context']
    
    if model_type == 'nlp1':
        logger.info('NLP Model Version 1 loaded')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ml-images/oci/app.py [43:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@tracer.capture_lambda_handler
@metrics.log_metrics(capture_cold_start_metric=True)
@logger.inject_lambda_context(log_event=True)
def lambda_handler(event, context):
    body = json.loads(event['body'])
    model_type = body['model_type']
    question = body['question']
    context = body['context']
    
    if model_type == 'nlp1':
        logger.info('NLP Model Version 1 loaded')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



