If the roof of your mouth swells closer to your front teeth for a few days could it be diet-related?

Could be a reaction to something spicy in a certain food. It could also be from eating something very hot and the tissue has been burned or irritated.