def handler()

in inference/sentiment.py [0:0]


def handler(event, context):
    response = {
        "statusCode": 200,
        "body": nlp(event['text'])[0]
    }
    return response