@nif_blueprint.route('/', methods=['POST', 'GET'])
def home():
    try:
        params = get_params(request)
        algo = params.get("algorithm", None)
        specific_params = current_app.senpy.parameters(algo)
        logger.debug(
            "Specific params: %s", json.dumps(specific_params, indent=4))
        params.update(get_params(request, specific_params))
        response = current_app.senpy.analyse(**params)
        in_headers = params["inHeaders"] != "0"
        return response.flask(in_headers=in_headers)
    except __HOLE__ as ex:
        return ex.message.flask()
dataset/ETHPy150Open gsi-upm/senpy/senpy/blueprints.py/home