If \(\mathrm{f}(x)=\frac{1+\cos \pi x}{\pi(1-x)^2}\), for \(x \neq 1\) is continuous at \(x=1\), then \(\mathrm{f}(1)\) is equal to