Bad marshal data (unknown type code)

I get everything in jupyter notebook but showing error in streamlit.
full code in github: https://github.com/muhammed-arshid/Cough-detection/blob/master/main.py
pls help