To raised a body up to height $$h$$ a person will apply the force upward in the direction of displacement.
Gravitational force is always downward, but displacement is upward here. So $$\theta =180^o$$
$$\therefore WD=Fds \cos 180^o =-Fds$$
Hence, $$WD$$ by gravitational force is negative.