Baby won’t eat

My baby won’t eat his purées and i don’t know what to do. All of a sudden he seems grossed out by everything even the foods he loves. He seems to hate everything and only likes sweet potatoes and bananas, and now he’s refusing to eat those and making faces like they’re gross. I’m at loss on what to do