diff --git a/gradio_server.py b/gradio_server.py index bcc0164..7f4e345 100644 --- a/gradio_server.py +++ b/gradio_server.py @@ -2566,6 +2566,8 @@ def generate_video_tab(image2video=False): remove_background_image_ref = gr.Text(visible = False) else: image_prompt_type= ui_defaults.get("image_prompt_type","I") + if not isinstance(image_prompt_type, str): + image_prompt_type ="I" image_prompt_type_radio = gr.Radio( [("Use Images Ref", "I"),("a Video", "V"), ("Images + a Video", "IV"), ("Video + Video Mask", "VM"), ("Images + Video + Mask", "IVM")], value =image_prompt_type, label="Location", show_label= False, scale= 3, visible = vace_model) image_source1 = gr.Gallery( label="Reference Images of Faces and / or Object to be found in the Video", type ="pil", @@ -3195,9 +3197,10 @@ def generate_about_tab(): gr.Markdown("