I had a crazy gnat infestation myself. I went to home depot, bought some neem oil.... sprayed the hell out of the plants undersize of every leaf, top side of every leaf, all the soil, the stem everything after my lights turned off, I did it once for 2 days in succession, waited a week, then did it again. Haven't seen a gnat since. I HIGHLY recommend neem oil. I don't know what others will suggest, but hit them once for two days, wait, then hit them again. I bought some sticky traps aswell, but haven't gotten a single gnat on the traps because the neem oil killed all of them lol.