async def _delete_state_handler(app: App):
    """When the server launches, regularly delete expired state."""
    asyncio.create_task(_delete_state(app))
    yield
When the server launches, regularly delete expired state.
gradio/route_utils.py