LOS ANGELES (AP) — Gabourey Sidibe says she had weight-loss surgery last year after being diagnosed with Type 2 diabetes.

In an excerpt from her forthcoming memoir published Wednesday by People magazine, the Oscar-nominated actress says she underwent the bariatric procedure in May.

READ MORE: Rising Sea Level Threatens Stinson Beach Neighborhoods

The 33-year-old “Empire” star says she did not have the surgery to be beautiful but to improve her health and move with more ease.

Surgery “wasn’t the easy way out,” she says, adding that she has changed her eating habits and is working with a trainer. And despite her continuing weight loss, Sidibe says her “beauty doesn’t come from a mirror.”

READ MORE: Kaiser Employees Win $11.5 Million Class-Action, Race-Discrimination Lawsuit

Sidibe shared a link to the People article from her verified Twitter account.

Her book, “This is Just My Face: Try Not to Stare,” will be published in May.

MORE NEWS: Bay Area Teams Ready to Welcome Fans But Impact of Fake Vaccination Cards Is Unknown
© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.