If your carpet is dirty or stained instead of worn, you may look into the services of a carpet cleaning firm, especially if the stains are dark.
Think also, what is popular in your area for homes of your size and quality? If carpets are the norm (they are not everywhere), that's one thing; if wood floors or laminate are more popular, then you may want to focus your thinking in that direction. Also are the buyers for your home going to be fussy Generally high end buyers are significantly more fussy than others. Low-end buyers are the least fussy.
We don't want to see you spend money needlessly, nor do we want to see you have to take a discount when by spending some, you might have received more.