Export.pkl is unsafe

Hi
My project that detect some picture was working fine
However , now in hugging face it say expert.pkl is unsafe ?

It was working in the past ?
Anyone know the solution ?

Maybe you should upgrade your fastai library. If you want more detailed answers, please remember to include more information.

I faced similar issue. After some looking I found that HuggingFace used Python3.10 for spaces and I was using Python3.13. Downgrading to Python3.10 and re-training the model, then uploading it fixed the issue for me.

2 Likes