I worry about women getting irritated about their workout being interrupted. Has anyone had success with cold approaching at the gym? What do you say?

In my head I imagine walking up to a chick, complimenting her, making introductions, and then asking for her number and saying we should hang out sometime.. or do I need to make small talk for a bit? Am I overthinking it?