AIAnytime / Chat-with-PDF-Chatbot

This Chatbot is an interactive app developed to assist users to interact with their PDF. It is built using Open Source Stack. No OpenAI is required.
MIT License
144 stars 110 forks source link

Error: type Document is not JSON serializable #3

Open berfinpala opened 1 year ago

berfinpala commented 1 year ago

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)

Zaheer-10 commented 1 year ago

Can you provide more detail about your bug?