diff --git a/server.py b/server.py index 5c916c33..5c224e36 100644 --- a/server.py +++ b/server.py @@ -1052,10 +1052,8 @@ def create_interface(): create_file_saving_event_handlers() - shared.gradio['interface'].load( - lambda: None, None, None, _js=f"() => {{{js}}}").then( - partial(ui.apply_interface_values, {}, use_persistent=True), None, gradio(ui.list_interface_input_elements()), show_progress=False) - + shared.gradio['interface'].load(lambda: None, None, None, _js=f"() => {{{js}}}") + shared.gradio['interface'].load(partial(ui.apply_interface_values, {}, use_persistent=True), None, gradio(ui.list_interface_input_elements()), show_progress=False) if shared.settings['dark_theme']: shared.gradio['interface'].load(lambda: None, None, None, _js="() => document.getElementsByTagName('body')[0].classList.add('dark')")