1. A method for controlling the torque of a motor in a hybrid electric vehicle, the method comprising: forming a single current control map based on an engine room temperature; determining a motor operation range that requires temperature compensation according to motor load conditions such as speed and torque; obtaining an optimization formula for torque command compensation; determining a torque command compensation value using the optimization formula; generating a new torque command with the torque command compensation value and applying the same to the single current control map to create a current for which a torque variation according to a temperature change is compensated; and applying the compensated current to the motor.