UnhashableType: Cannot hash object of type _io.BytesIO
@st.cache(hash_funcs={_io.BytesIO: my_hash_func})
def my_func(...):
Traceback:
File "C:\Users\Infogen\Desktop\Learn\streamlit\WebApp-Computer-Vision-streamlit\main.py", line 53, in <module>
main()
File "C:\Users\Infogen\Desktop\Learn\streamlit\WebApp-Computer-Vision-streamlit\main.py", line 44, in main
imageWebApp(guiParam)
File "C:\Users\Infogen\Desktop\Learn\streamlit\WebApp-Computer-Vision-streamlit\main.py", line 23, in imageWebApp
image = conf.load_image_or_video()
File "C:\Users\Infogen\Desktop\Learn\streamlit\WebApp-Computer-Vision-streamlit\libraries\utils.py", line 415, in load_image_or_video
self.data = self.load_image_source()
File "C:\Users\Infogen\Desktop\Learn\streamlit\WebApp-Computer-Vision-streamlit\libraries\utils.py", line 369, in load_image_source
self.image = load_image_from_upload(file_path)
File "d:\programdata\anaconda3\envs\stream\lib\copyreg.py", line 66, in _reduce_ex
raise TypeError(f"cannot pickle {cls.__name__!r} object")
Message that will be displayed on users' first issue
Hi @Ajinkz
I really suggest creating an issue on here: https://github.com/streamlit/streamlit since it is a problem with streamlit framework.
You can also post a message in the streamlit community, they are very active: https://discuss.streamlit.io/
Amine.
Can you plz suggest how i solve this problem ?
UnboundLocalError: local variable 'net' referenced before assignment
Traceback:
File "C:\python\lib\site-packages\streamlit\script_runner.py", line 354, in _run_script
exec(code, module.dict)
File "C:\Users\Admin\Downloads\Compressed\Project\WebApp-Computer-Vision-streamlit-master\main.py", line 53, in