remove mold from carpet
https://wiki-fusion.win/index.php/How_to_Identify_and_Address_a_Musty_Smell_from_Carpet_in_Your_Home
Spray the moldy carpet with a mix of white vinegar and water, let it sit for an hour, then scrub gently with a stiff brush. Make sure to ventilate the room well, and dry the area thoroughly with fans or a dehumidifier; if the smell persists, a sprinkle of baking soda left overnight can help lift it out.