3 ms·
Probably yes, although I'm not sure I understand exactly what ShowHN is. I fully understand your concerns, but I don't know how to guarantee that the pkl is ok
by vsemecky 5y ago
Probably yes, although I'm not sure I understand exactly what ShowHN is.
I fully understand your concerns, but I don't know how to guarantee that the pkl is ok. Don't run it on your computer, but in some isolated environment, like Colab.
- GistNoesis 5y agohttps://news.ycombinator.com/showhn.html https://news.ycombinator.com/showhn.html I'd argue that running untrusted code in a Colab is even worse, as you'd risk your account instead of just your computer. I don't think pickle files can be loaded safely, it's better to use a numpy archive npz to store the weights which can be loaded without a security risk by using allow_pickle=false when loading (the default since numpy 1.16.3)
- im3w1l 5y agoThe solution is to use a different format that is safer.