How to replace the weights/biases manually

This post solved the problem for me.