From af0bbf5b1373bfa0830cf43d040cbfabd5beda54 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 17 Feb 2024 09:01:04 -0800 Subject: [PATCH] Lint --- modules/ui_model_menu.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/ui_model_menu.py b/modules/ui_model_menu.py index 14bc7caf..ac6a8a8f 100644 --- a/modules/ui_model_menu.py +++ b/modules/ui_model_menu.py @@ -173,7 +173,7 @@ def create_ui(): ui.create_refresh_button(shared.gradio['customized_template'], lambda: None, lambda: {'choices': utils.get_available_instruction_templates()}, 'refresh-button', interactive=not mu) shared.gradio['customized_template_submit'] = gr.Button("Submit", variant="primary", interactive=not mu) - gr.Markdown("This allows you to set a customized template for the model currently selected in the \"Model loader\" menu. Whenver the model gets loaded, this template will be used in place of the template specified in the model's medatada, which sometimes is wrong.") + gr.Markdown("This allows you to set a customized template for the model currently selected in the \"Model loader\" menu. Whenever the model gets loaded, this template will be used in place of the template specified in the model's medatada, which sometimes is wrong.") with gr.Row(): shared.gradio['model_status'] = gr.Markdown('No model is loaded' if shared.model_name == 'None' else 'Ready') @@ -331,7 +331,3 @@ def update_truncation_length(current_length, state): return state['n_ctx'] return current_length - - -def save_model_template(model, template): - pass