Should i give up my dog ?

Bri • Married and mother to babygirl💓

I have a pit bull mixed dog . She around 50 lbs and has been with us since she was 5 weeks old . She’s the sweetest dog , she doesn’t bite or anything barely even barks . The problem is , she’s very very hyper . We try to teach her not to jump on us but she still does it . She jumps on our guest when we have company over . Now that I’m 6 months pregnant I’m scared i might have to give her up. I’m scared that when we have the baby she’s gonna jump all over the baby and hurt her . Also I’m scared that she’s gonna jump on my stomach and hurt the baby one of these times . I love her and i don’t want to give her up but i don’t know what to do . Shes only about a year and a half old . Would training classes help her ? Or would it be better to give her to someone who could give her more time , since I’ll be having a newborn soon ( I’ll be a first time mom) no rude comments please, only advice