Here’s the Google colab link to replicate the error.
The error has been occuring only on Google colab and I am not able to comprehend why.
I am trying to use st.cache() on load_detector_model and inference function so that after predicting the cropped image, it won’t reload when I try to change the parameters (sliders in side menu).
Here’s the full traceback:
File "/content/Automatic-License-Plate-Recognition/app.py", line 53, in <module> @st.cache(suppress_st_warning=True, allow_output_mutation=True)File "/usr/lib/python3.6/copyreg.py", line 65, in _reduce_ex raise TypeError("can't pickle %s objects" % base.__name__)
Also would you kindly point me towards resources that can help me to display an generated / cropped image onto another streamlit page, because as soon as i change the page the previous elements seems to get discarded.