Predicting metallicities and carbon abundances from Gaia XP spectra for (carbon-enhanced) metal-poor stars | Synapse