Duckweed is not the sort of plant you want here. With fish that live among floating vegetation, like the anabantids which includes gouramis and bettas, you want floating plants with more substance than duckweed. Water Sprite is ideal, and others are Frogbit, Water Lettuce, and some stem plants left floating can be useful. I have a thick mat of Brazilian Pennywort floating in my 29g blackwater tank and the pencilfish that live at the surface love swimming among all this tangle searching for microscopic critters to eat. With a Betta you want to keep some open space among such plants.
There is nothing wrong with duckweed as a plant in certain situations, but it is so tiny it covers the surface but there are no dangling root masses a few inches in depth and that is what you want here.