I know this is old but if youre still having the problem try using a tablespoon of vanilla extract to one cup of water. Dont put it on the plants just sit the cup near them. For some reason gnats hate vanilla.