BANGOR — A Maine woman who doused her 77-year-old grandmother with gasoline and set her afire has been committed to a psychiatric facility in Augusta.

A District Court judge on Friday accepted 27-year-old Emily Cole’s insanity defense, based on reports from a doctor at Riverview Psychiatric Facility.

Cole, who’s from Ellsworth, was originally charged with attempted murder and elevated aggravated assault stemming from the incident last May. The grandmother was attacked outside her Bangor home after reprimanding Cole for using gasoline to set pine needles on fire.

Emily Cole said she was upset about a breakup with a partner. Her grandmother, Ernestine Cole, was critically injured but recovered from her burns.