Male flowers will have a skinny stem with stamens (little pollen producing antenna on the inside).

Female flowers will have a fat mini-pumpkin behind them and have only a pistil on the inside (the girl parts, looks like kinda a weird white-ish coral in squash family blooms).