Allow extensions to define a new tab
This commit is contained in:
parent
ad0b71af11
commit
ce21804ec7
4 changed files with 51 additions and 22 deletions
|
@ -877,9 +877,11 @@ def create_interface():
|
|||
|
||||
shared.gradio['interface'].load(None, None, None, _js=f"() => {{{js}}}")
|
||||
shared.gradio['interface'].load(partial(ui.apply_interface_values, {}, use_persistent=True), None, [shared.gradio[k] for k in ui.list_interface_input_elements(chat=shared.is_chat())], show_progress=False)
|
||||
# Extensions tabs
|
||||
extensions_module.create_extensions_tabs()
|
||||
|
||||
# Extensions block
|
||||
if shared.args.extensions is not None:
|
||||
extensions_module.create_extensions_block()
|
||||
extensions_module.create_extensions_block()
|
||||
|
||||
# Launch the interface
|
||||
shared.gradio['interface'].queue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue