def input_fn()

in inference.py [0:0]


def input_fn(serialized_input_data, content_type='text/plain'):
    logger.info('Deserializing the input data.')
    try:
        data = [serialized_input_data.decode('utf-8')]
        return data
    except:
        raise Exception('Requested unsupported ContentType in content_type: {}'.format(content_type))