A Ridgewood gym teacher has been sentenced to 10 months probation for pleading guilty to having sex with two underage male students, though she will have to complete a year's worth of therapy in order to avoid jail time.

Joy Morsi, 40, was arrested in June when a student at the Grover Cleveland High School, where she taught since 1999, accused her of having a year-long sexual relationship with him when he was only 16. A second 16-year-old boy later came forth to accuse her as well, and she pleaded guilty on Friday to rape and criminal sexual act charges.

In addition to sentencing her to a year-long out-patient program for a diagnosed depressive disorder, a Queens Supreme Court judge also ordered that she give up her teaching license and register as a sex offender.

Morsi is married, and her husband is also a teacher at Grover Cleveland High School. She initially faced up to four years in prison.