I hate to say it but that's a situation that can't end well- you'll end up with seedy bud.
You need to start some fresh seedlings from known good quality seeds.
Whether you want to spend a lot of time picking herm flowers off the ones you have now is up to you. If you don't you will have seeds. If you do, you STILL may have seeds- easy to miss a few, you know?
Either way, when this flower cycle is complete, sponge down all the surfaces in your grow area with a damp sponge to clean up any remaining pollen.

There is always the possibility that the plants went hermi from growing conditions such as heat or photoperiod stress. So you have to make the call whether your room is optimal conditions or not.