MarshallComponentException: ('Could not convert component args to JSON', TypeError('Object of type Document is not JSON serializable'))
Traceback:
file "C:..\chatbot.py", line 97, in
main()
File "C:..I\chatbot.py", line 93, in main
display_conversation(st.session_state)
File "C:..\chatbot.py", line 65, in display_conversation
message(history["generated"][i],key=str(i))
File "C:\Users...conda\envs\myenv\lib\site-packages\streamlit_chat__init__.py", line 104, in message
_streamlit_chat(message=message, seed=seed, isUser=is_user, avatarStyle=avatar_style, key=key, allow_html=allow_html, is_table=is_table)
MarshallComponentException: ('Could not convert component args to JSON', TypeError('Object of type Document is not JSON serializable'))
Traceback:
file "C:..\chatbot.py", line 97, in
main()
File "C:..I\chatbot.py", line 93, in main
display_conversation(st.session_state)
File "C:..\chatbot.py", line 65, in display_conversation
message(history["generated"][i],key=str(i))
File "C:\Users...conda\envs\myenv\lib\site-packages\streamlit_chat__init__.py", line 104, in message
_streamlit_chat(message=message, seed=seed, isUser=is_user, avatarStyle=avatar_style, key=key, allow_html=allow_html, is_table=is_table)