From 350758f81cfd27b32abe8ab6a8837f5bf0253479 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:34:36 -0800 Subject: [PATCH] UI: Fix the history upload event --- modules/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.py b/modules/chat.py index b81cfea6..787277b9 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -1108,8 +1108,8 @@ def handle_rename_chat_confirm(rename_to, state): def handle_upload_chat_history(load_chat_history, state): history = start_new_chat(state) history = load_history_json(load_chat_history, history) - histories = find_all_histories_with_first_prompts(state) save_history(history, state['unique_id'], state['character_menu'], state['mode']) + histories = find_all_histories_with_first_prompts(state) html = redraw_html(history, state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu'])