I’m using git lfs to store a pickled model. Streamlit wouldn’t pull properly when the git attributes file existed. I deleted it and got much further in my deployment, then ran into the problem of not being able to load my pickle and I suspect it’s because the git attributes file is gone. I read through some threads and streamlit supports git lfs now. Not sure how to proceed. Error I get when trying to load the pickle and don’t have the git attributes file:
2021-04-14 23:03:25.805 Uncaught app exception Traceback (most recent call last): File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 333, in _run_script exec(code, module.__dict__) File "/app/nlp/NLP_Project.py", line 487, in <module> svm_fasttext_model = pickle.load(f) _pickle.UnpicklingError: invalid load key, 'v'.