AIAnytime / AIAnytime/Chat-with-PDF-Chatbot

Error: type Document is not JSON serializable

Đang mở
#3 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
176
Fork
121
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.