Medication causing me to become asexual?

When I first got on meds I wasn’t interested in sex and that upset my partner. but eventually I got my sex drive a few months later. I like personally think it was the celexa or fanapt.