If you have a trainer working out with other people in the gym, it's easier to keep riding a bike. If you want to lose weight, you should ride for an hour anyway. Think about how far you have to ride. You won't be lonely if you have company. If you don't ride alone, you will soon be tired.
You can also find another part-time job, so that you can lose weight and earn money. The busier you are, the less you feel hungry, the less you want to eat, and then the less you eat. Maybe I'll slim down after half a year and find myself something to eat when I want to eat.