It is quite normal to sweat when you eat spicy foods, because these activate certain chemical receptors that causes the body to cause reflexive cooling - resulting in a sweat response.
If you think it is excessive sweating consult a doctor. There are other factors which cannot be explained by just a couple of sentences.