The deceased were identified as Rajendra Singh (40) and Ravi (25), District Magistrate Rajshekhar said.
He said Chief Minister Akhilesh Yadav has announced Rs 10 lakh as relief to the families of the deceased.
The construction agency for which they were working has given Rs two lakh to the next of kin of each deceased, he added.