They are probably using a newer approach, where they pre-train a neural network and use forward propagation only. With this technique, applying the effect can take less than one second. See
https://github.com/DmitryUlyanov/texture_nets for more details. You can also try it here:
http://turbo.deepart.io/