Both companies are betting on interest in weight loss pills.