From 2afe1c13c143dd3e8c2d63c15fb8c1ef59895448 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Mon, 27 Mar 2023 08:32:32 -0700 Subject: [PATCH] move Training to before Interface mode as Interface Mode seems to be a core 'settings' page that naturally belongs at the very end --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 03158ac6..0e512c7b 100644 --- a/server.py +++ b/server.py @@ -468,6 +468,9 @@ def create_interface(): shared.gradio['Stop'].click(None, None, None, cancels=gen_events) shared.gradio['interface'].load(None, None, None, _js=f"() => {{{ui.main_js}}}") + with gr.Tab("Training", elem_id="training-tab"): + training.create_train_interface() + with gr.Tab("Interface mode", elem_id="interface-mode"): modes = ["default", "notebook", "chat", "cai_chat"] current_mode = "default" @@ -488,9 +491,6 @@ def create_interface(): shared.gradio['reset_interface'].click(set_interface_arguments, [shared.gradio[k] for k in ['interface_modes_menu', 'extensions_menu', 'cmd_arguments_menu']], None) shared.gradio['reset_interface'].click(lambda : None, None, None, _js='() => {document.body.innerHTML=\'

Reloading...

\'; setTimeout(function(){location.reload()},2500)}') - with gr.Tab("Training", elem_id="training-tab"): - training.create_train_interface() - if shared.args.extensions is not None: extensions_module.create_extensions_block()