if the little balls are attached directly to the stalk with tongues its female ...

If the balls are attached to the stalk by a piece of stem, and faceing downward.... its male.

Also.... what sort of seeds are you growing?.... did you get them from a sack you liked?

from a seed bank?...

Its pretty possible if they are bag seeds they could be hermies...I have run into your situation in the past.... You can force your plants to be a hermie with light stresses.. but i would lay money on the DNA being goofed...

If you got your seeds from a reputable supplier then your problem may be light leaks in your room for the night cycle.

I have only tried to save one plant in this situation... it did not work out in any way and in the future my plan will be to remove it quikly.