in app/app.py [0:0]
def update_visibility(has_consent):
# Show/hide components based on consent status
return (
gr.Group(visible=True), # main_app
gr.Group(visible=not has_consent), # consent_overlay
gr.Group(visible=not has_consent) # consent_modal
)