If f(x) = \(\left\{ \begin{aligned} & \frac{1-\cos Kx}{x\sin x} ,\ \ \text{if x}\neq0 \\ &\ \ \ \ \ \ \ \frac{1}{2}\ \ \ \ \ \ \ \ \ ,\ \ \ \text{if x=0} \end{aligned} \right.\) is continuous at x = 0, then the value of K is