A transformer-based generative model for planetary systems