losing and gaining weight

so how do I gain weight I'm 13 weeks and 3 days and the doctor said all my test and everything came back fine and I got my ultrasound today the baby was super energetic even stood on her head and waved but he said I'm losing a bit of weight quite fast and I need to gain it but I eat alot