UI: store chat history in the browser

This commit is contained in:
oobabooga 2024-06-25 14:18:07 -07:00
parent 46ca15cb79
commit ac3f92d36a

View file

@ -19,7 +19,7 @@ def create_ui():
mu = shared.args.multi_user
shared.gradio['Chat input'] = gr.State()
shared.gradio['history'] = gr.State({'internal': [], 'visible': []})
shared.gradio['history'] = gr.JSON({'internal': [], 'visible': []}, visible=False)
with gr.Tab('Chat', elem_id='chat-tab', elem_classes=("old-ui" if shared.args.chat_buttons else None)):
with gr.Row():