The 7D has more than twice as many autofocus points than the T5i. They are spread more widely over the viewfinder. Plus it has a dedicated processor which just handles autofocus. The point being that the autofocus on the 7D is much better in almost all circumstances. That's the big advantage of the 7D.
Other advantages include a better control layout and a more rugged body. It uses Compact Flash cards which are available at higher speeds than Secure Digital cards. The viewfinder is larger and brighter (it shows 100% of the scene instead of 95% on the T5i). So the 7D definitely has many advantages.
The T5i has lots of neat new features as well, of course. Having said that it isn't terribly different from the T4i which is a bit cheaper. Why not get the T4i? For that matter, why not the 60D (which is sort of halfway between the 7D and T5i)?