Training a puppy HELP!

I have a baby who doesn’t take very long naps during the day so I can’t be standing outside for an hour waiting for this dog to go to the bathroom!

It’s not a medical issue.

I take her out frequently but she won’t go to the bathroom outside. I will stand outside with her for close to an hour without her doing anything and then we’ll come in and she’ll poop or pee on the carpet!

How can I stop her from doing this and go quicker outside??😩😩😩😭😭😭