The Miami woman in a video that went viral earlier this week, showing her in court flipping off a judge for setting her bond at $10,000 and then being slapped with 30 days in jail for her disrespectful actions, was singing a different tune Friday.

Penelope Soto Who Flipped Off Miami Judge Apologizes and Contempt Charge Is Dropped

(Image: YouTube screenshot)

With a lawyer by her side, 18-year-old Penelope Soto said Friday she was under the influence of Xanax and alcohol when she made the obscene and rude comments directed at Circuit Judge Jorge Rodriguez-Chomat. Soto apologized and the judge waived bail and dropped the contempt charge.

Penelope Soto Who Flipped Off Miami Judge Apologizes and Contempt Charge Is Dropped

Soto had a more somber face as she apologized for her actions Friday. (Image: KTLA video screenshot)

Rodriguez-Chomat said he hoped it would be a lesson in respect and that Soto would have been a convicted felon if he allowed the contempt charge to stand.

Her lawyer said Soto will complete a drug court program. That includes treatment for drug addiction and usually results in charges eventually being dropped for first-time offenders.

Watch Soto’s apology:

Here’s the viral video, which has more than 9.5 million views on YouTube as of Saturday, in case you missed it earlier this week:

The Associated Press contributed to this report. 

From the breaking news you need to know to the hottest trends circling the Web, TheBlaze has it all. Follow us on Facebook, Twitter, Instagram, Snapchat and Periscope.