The accused identified as Prabhu Das and Hanumanthu, both in their 20s, are employed by her labour contractor husband, they said.
The duo entered the woman's house when she was alone and attempted to outrage her modesty by touching her inappropriately. However, the woman fought back and pushed them aside, police said.
After they fell on ground, one of them took out a blade and attacked the woman, resulting in injuries to her chin and hand, before fleeing, police said, adding the duo were apprehended later.
A case is booked in this regard by police.