A Pennsylvania woman who participated in the Jan. 6 Capitol riot pleaded guilty on Tuesday to a federal misdemeanor for unlawfully protesting on restricted grounds after a video showed her making violent remarks about House Speaker Nancy Pelosi.

In the video, Doylestown gym owner Dawn Bancroft, 59, was recorded saying she was looking for Pelosi "to shoot her in the friggin' brain, but we didn’t find her." On Tuesday, she said she did not mean to threaten Pelosi.

"I said it in a jovial way. We were joking and laughing on the way back to the train. It was a dumb, stupid comment. I didn't mean it," Bancroft told the judge.

Later she added: "I understand what I did. It was not right. That is something I will teach to my children. I did it. I am guilty. And I'm going to take the consequences for what I did."

Prosecutors explained that they did not charge Bancroft for threatening a member of Congress, which is a felony, because the video showed her leaving the Capitol when the comments were made. Instead, they charged her with a low-level misdemeanor while dropping three other misdemeanor charges made against Bancroft.

“It’s very troubling to hear that the reason [she] was at the Capitol on Jan. 6 was essentially to murder the speaker of the House,” U.S. District Judge Emmet Sullivan said.

He added that Bancroft's video was “horrible” and “clearly troubling.”

Bancroft is set to be sentenced on Jan. 25.

According to a CNN tally, of the nearly 620 people charged due to involvement in the riot, 86 have pleaded guilty.