From 557538af014823154d42bc27572372e701b451f4 Mon Sep 17 00:00:00 2001 From: Don-A <38649081+D0n-A@users.noreply.github.com> Date: Sat, 12 Oct 2024 22:36:27 +0300 Subject: [PATCH] Update ranbooru.py Fix the Gradio Unused Kwarg Warning: You have unused kwarg parameters in Slider, please remove them: {'default': 1} --- scripts/ranbooru.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ranbooru.py b/scripts/ranbooru.py index 060473c..0d923ef 100644 --- a/scripts/ranbooru.py +++ b/scripts/ranbooru.py @@ -641,7 +641,7 @@ def ui(self, is_img2img): with gr.Box(): lora_lock_prev = gr.Checkbox(label="Lock previous LoRAs", value=False) lora_folder = gr.Textbox(lines=1, label="LoRAs Subfolder") - lora_amount = gr.Slider(default=1, label="LoRAs Amount", minimum=1, maximum=10, step=1) + lora_amount = gr.Slider(value=1, label="LoRAs Amount", minimum=1, maximum=10, step=1) with gr.Box(): lora_min = gr.Slider(value=-1.0, label="Min LoRAs Weight", minimum=-1.0, maximum=1, step=0.1) lora_max = gr.Slider(value=1.0, label="Max LoRAs Weight", minimum=-1.0, maximum=1.0, step=0.1)