mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 05:48:55 +01:00
Fix #2998
This commit is contained in:
parent
463ddfffd0
commit
40c5722499
@ -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…
Reference in New Issue
Block a user