As long as the enclosure is big enough to hold both frogs and one is not significantly larger then the other, it should be no problem keeping them together.

Males have yellow throats and the tympanum or eardrum is larger than the eye. In the female the tympanum is about the same size as the eye.