At first glance, I too was thinking TPS, but I am willing to bet that you have an auto trans and the problem could possibly be there. When your RPM picks up, and I’m assuming that the engine revs accordingly, does the car feel like it is slowing or just not accelerating with the RPM gain????