Not happy

I've been in a relationship over a year and we have baby together, but am not attracted to him anymore and am not happy, I feel like i need to be with him for our daughter and so he doesn't try and take her away from me help