Task-Parameterized Transformer for Learning Gripper Trajectory from Demonstrations