If they are paired male to female possibly, it would still depend on the individual fish. The male might harass the female. Most dwarf gouramis found in stores are male. Thus, it would probably be safe to say the person asking whether this would work or not was refferring to two males.
What can I have with a dward gourami and six cardinal tetras in a 10g? I would prefer something that is like a fish and moves, like not a shrimp or something.