mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-09 12:09:04 +01:00
UI: fix orjson.JSONDecodeError
error on page reload
This commit is contained in:
parent
973255cb0b
commit
b8fc9010fa
@ -18,7 +18,7 @@ def create_ui():
|
|||||||
mu = shared.args.multi_user
|
mu = shared.args.multi_user
|
||||||
|
|
||||||
shared.gradio['Chat input'] = gr.State()
|
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.Tab('Chat', elem_id='chat-tab'):
|
||||||
with gr.Row(elem_id='past-chats-row', elem_classes=['pretty_scrollbar']):
|
with gr.Row(elem_id='past-chats-row', elem_classes=['pretty_scrollbar']):
|
||||||
|
Loading…
Reference in New Issue
Block a user