mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Fix #2998
This commit is contained in:
parent
463ddfffd0
commit
40c5722499
@ -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')")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user