I want to cry!!! 😭😭😭

So somebody liked a bunch of my Instagram pics. So I started going through all my old pics I posted and I was in great shape. I look at these pics and think wow, my body is great, my face is pretty and It makes me feel so upset with myself that I want to go to the gym that second. But then I lose the motivation and eat whatever I want. What can I do to lose weight ? Or motivate myself