The 5450 is an entry level video card designed for HD video playback and little else, it can handle light gaming
The GT 640 is a lower end in the Geforce 600 series card capable of playing most modern games at low-medium settings
The GT 640 is much power powerful than the 5450 as it's comparable in performance to the old 8800/9800 GTX and capable of some gaming at lower settings, while the 5450 nowadays will not be handling any games, except maybe on the lowest settings at an extremely low resolution
The 5450 makes sense for those with a low end old machine with a low powered PSU who wish for smooth HD video playback
There is no comparison between the two, the GT 640 is much power powerful than the 5450, though the GT 640 is a rather rubbish card in its price range as it's a considerable bit weaker than the 7750 which can be found in the same price range