From e5b15478490e9dea11f6975b54bf24079cec9943 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 10 May 2023 14:43:28 -0300 Subject: [PATCH] Fix reload model button --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 7c3ab4b8..a6f44640 100644 --- a/server.py +++ b/server.py @@ -383,7 +383,7 @@ def create_model_menus(): unload_model, None, None).then( ui.gather_interface_values, [shared.gradio[k] for k in shared.input_elements], shared.gradio['interface_state']).then( update_model_parameters, shared.gradio['interface_state'], None).then( - load_model_wrapper, shared.gradio['model_menu'], shared.gradio['model_status'], show_progress=False) + partial(load_model_wrapper, autoload=True), shared.gradio['model_menu'], shared.gradio['model_status'], show_progress=False) save_settings.click( ui.gather_interface_values, [shared.gradio[k] for k in shared.input_elements], shared.gradio['interface_state']).then(