Weight loss

I keep losing weight and it’s definitely because of stress... I’m trying to gain my weight back but nothing is working. Is there like a pill or something that could help?