From ac05b96838fca2242acbbfd73198ac6ea3229c89 Mon Sep 17 00:00:00 2001 From: hypercryptoman <110080854+hypercryptoman@users.noreply.github.com> Date: Mon, 19 May 2025 13:55:16 +1000 Subject: [PATCH] Update prompt_enhance.py --- scripts/prompt_enhance.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/prompt_enhance.py b/scripts/prompt_enhance.py index 118695feb..fdfdfa86c 100644 --- a/scripts/prompt_enhance.py +++ b/scripts/prompt_enhance.py @@ -445,7 +445,6 @@ class Script(scripts.Script): model_file = gr.Textbox(label='Model file', value=None, interactive=True, elem_id='prompt_enhance_model_file', placeholder='Optional GGUF model file inside GGUF model repo') with gr.Row(): custom_btn = gr.Button(value='Load custom model', elem_id='prompt_enhance_custom_load', variant='secondary') - # THIS IS THE CORRECTED LINE: custom_btn.click(fn=self.load, inputs=[model_repo, model_repo, model_gguf, model_type, model_file], outputs=[]) llm_model.change(fn=self.get_custom, inputs=[llm_model], outputs=[model_repo, model_gguf, model_type, model_file]) gr.HTML('
')