This commit is contained in:
oobabooga 2023-07-04 11:35:25 -03:00 committed by GitHub
parent 463ddfffd0
commit 40c5722499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')")