# Initialize the state
state = State(**app.get_state(config).values) or State(messages=[])
print("STATE", state)