Fix #2998
This commit is contained in:
parent
463ddfffd0
commit
40c5722499
1 changed files with 2 additions and 4 deletions
|
@ -1052,10 +1052,8 @@ def create_interface():
|
||||||
|
|
||||||
create_file_saving_event_handlers()
|
create_file_saving_event_handlers()
|
||||||
|
|
||||||
shared.gradio['interface'].load(
|
shared.gradio['interface'].load(lambda: None, None, None, _js=f"() => {{{js}}}")
|
||||||
lambda: None, None, None, _js=f"() => {{{js}}}").then(
|
shared.gradio['interface'].load(partial(ui.apply_interface_values, {}, use_persistent=True), None, gradio(ui.list_interface_input_elements()), show_progress=False)
|
||||||
partial(ui.apply_interface_values, {}, use_persistent=True), None, gradio(ui.list_interface_input_elements()), show_progress=False)
|
|
||||||
|
|
||||||
if shared.settings['dark_theme']:
|
if shared.settings['dark_theme']:
|
||||||
shared.gradio['interface'].load(lambda: None, None, None, _js="() => document.getElementsByTagName('body')[0].classList.add('dark')")
|
shared.gradio['interface'].load(lambda: None, None, None, _js="() => document.getElementsByTagName('body')[0].classList.add('dark')")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue