Are you sure you have a male and a female? Post pics please. Also, try putting a few little flower pots in the tank.
I had 2 males and 2 females in a 29 gallon tank and they wouldn't stop breeding... Had to get rid of them cause we ran out of tank space and my other fish couldn't eat the fry fast enough lol