UI: fix orjson.JSONDecodeError error on page reload

This commit is contained in:
oobabooga 2025-01-02 16:57:04 -08:00
parent 973255cb0b
commit b8fc9010fa

View File

@ -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']):