From 7cce88c403657ce94ccec67a6f6bbd9df33833f2 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 2 Jan 2024 07:20:59 -0800 Subject: [PATCH] Rmove an unncecessary exception --- modules/ui_chat.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ui_chat.py b/modules/ui_chat.py index db1f5da1..76c7d5ff 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -284,7 +284,6 @@ def create_event_handlers(): shared.gradio['mode'].change( lambda x: gr.update(visible=x != 'instruct'), gradio('mode'), gradio('chat_style'), show_progress=False).then( ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then( - partial(chat.character_is_loaded, raise_exception=True), gradio('interface_state'), None).success( chat.load_latest_history, gradio('interface_state'), gradio('history')).then( chat.redraw_html, gradio(reload_arr), gradio('display')).then( lambda x: gr.update(choices=(histories := chat.find_all_histories(x)), value=histories[0]), gradio('interface_state'), gradio('unique_id'))