Text this: Enhancing Trajectory Tracking in Humanoid Robots Using Neural Network-Based Dynamic Gain Control