def get_config()

in app/app.py [0:0]


def get_config(request: gr.Request):
    """Get configuration from cookies"""
    config = {"feel_consent": False}
    
    if request and hasattr(request, 'cookies'):
        for key in config.keys():
            if key in request.cookies:
                config[key] = request.cookies[key] == 'true'
    
    return config["feel_consent"]