From b8fc9010fa4667c78a01adb6f1449e515e94709f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:57:04 -0800 Subject: [PATCH] UI: fix `orjson.JSONDecodeError` error on page reload --- modules/ui_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_chat.py b/modules/ui_chat.py index b09d0081..ecebc28e 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -18,7 +18,7 @@ def create_ui(): mu = shared.args.multi_user shared.gradio['Chat input'] = gr.State() - shared.gradio['history'] = gr.JSON({'internal': [], 'visible': []}, visible=False) + shared.gradio['history'] = gr.JSON(visible=False) with gr.Tab('Chat', elem_id='chat-tab'): with gr.Row(elem_id='past-chats-row', elem_classes=['pretty_scrollbar']):