From 408ebc44ceade890102230bf4f62c3123e356ef4 Mon Sep 17 00:00:00 2001 From: DeepBeepMeep Date: Thu, 20 Mar 2025 00:41:15 +0100 Subject: [PATCH] fixed slight ui glitch --- gradio_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gradio_server.py b/gradio_server.py index 1950beb..0ad2d8c 100644 --- a/gradio_server.py +++ b/gradio_server.py @@ -1929,7 +1929,7 @@ def create_demo(): flow_shift = gr.Slider(0.0, 25.0, value= default_flow_shift, step=0.1, label="Shift Scale") with gr.Row(): negative_prompt = gr.Textbox(label="Negative Prompt", value="") - with gr.Column() as loras_column: + with gr.Column(visible = len(loras)>0) as loras_column: gr.Markdown("Loras can be used to create special effects on the video by mentioned a trigger word in the Prompt. You can save Loras combinations in presets.") loras_choices = gr.Dropdown( choices=[ @@ -1937,10 +1937,9 @@ def create_demo(): ], value= default_loras_choices, multiselect= True, - visible= len(loras)>0, label="Activated Loras" ) - loras_mult_choices = gr.Textbox(label="Loras Multipliers (1.0 by default) separated by space characters or carriage returns, line that starts with # are ignored", value=default_loras_multis_str, visible= len(loras)>0 ) + loras_mult_choices = gr.Textbox(label="Loras Multipliers (1.0 by default) separated by space characters or carriage returns, line that starts with # are ignored", value=default_loras_multis_str) with gr.Row():