fixed End Frames checkbox not always visible

This commit is contained in:
DeepBeepMeep 2025-09-05 22:05:00 +02:00
parent cf65889e2e
commit 242ae50d83

2
wgp.py
View File

@ -7105,8 +7105,8 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
with gr.Group(visible= len(image_prompt_types_allowed)>1) as image_prompt_type_group: with gr.Group(visible= len(image_prompt_types_allowed)>1) as image_prompt_type_group:
with gr.Row(): with gr.Row():
image_prompt_type_radio_allowed_values= filter_letters(image_prompt_types_allowed, "SVL") image_prompt_type_radio_allowed_values= filter_letters(image_prompt_types_allowed, "SVL")
image_prompt_type_radio_value = filter_letters(image_prompt_type_value, image_prompt_type_radio_allowed_values, image_prompt_type_choices[0][1])
if len(image_prompt_type_choices) > 0: if len(image_prompt_type_choices) > 0:
image_prompt_type_radio_value = filter_letters(image_prompt_type_value, image_prompt_type_radio_allowed_values, image_prompt_type_choices[0][1])
image_prompt_type_radio = gr.Radio( image_prompt_type_choices, value = image_prompt_type_radio_value, label="Location", show_label= False, visible= len(image_prompt_types_allowed)>1, scale= 3) image_prompt_type_radio = gr.Radio( image_prompt_type_choices, value = image_prompt_type_radio_value, label="Location", show_label= False, visible= len(image_prompt_types_allowed)>1, scale= 3)
else: else:
image_prompt_type_radio = gr.Radio(choices=[("", "")], value="", visible= False) image_prompt_type_radio = gr.Radio(choices=[("", "")], value="", visible= False)