mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -04:00
Fix counting tokens with an empty history
This commit is contained in:
parent
c9510f36e9
commit
18c0eb7e38
1 changed files with 1 additions and 1 deletions
|
@ -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.State()
|
shared.gradio['history'] = gr.State({'internal': [], 'visible': [], 'metadata': {}})
|
||||||
|
|
||||||
with gr.Tab('Chat', id='Chat', elem_id='chat-tab'):
|
with gr.Tab('Chat', id='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…
Add table
Reference in a new issue