AIAnytime / AIAnytime/Chat-with-PDF-Chatbot

Error: type Document is not JSON serializable

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
176
Forks
121
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.