is the tide turning in my favor

My ex girlfriend broke up with me 7 weeks ago.the first week we didn’t talk. Then I started begging and freaking out. I made things worse for awhile. Then about a month ago I went to her house and we just talked,mostly catching up but we had sex and the next day she said it was done for sure. So I left her alone other than a couple texts. She told me not to text that I should leave it up to her. So I stopped and a week later she called me two days in a row telling me she was missing me. The second of those days she wanted to come see me and hold me but I wasn’t home. She also said that I make her feel better when she’s down. Instead of being patient I texted her saying if I make u feel better maybe that’s your emotions telling u to be with me. I texted the next day apologizing and she said don’t apologize and she apologized for being fucked in the head. I told her I needed to be hurt to realize my mistakes. She broke up with me because she felt I was unmotivated and was making her unmotivated. I’ve been working on my problems and I lost 20 lbs also. She seems depressed and not really trying to fix herself. She says she’s depressed because I’m doing so well without her which I said I was but I’m really not. I think if I’m patient things will work out. What are your opinions of the situation?

Can someone please help! I’m in desperate need of advice. I’m new to this site and need advice.