From dac6796e87b95d25cfa7fe03bd66a20bff8c4741 Mon Sep 17 00:00:00 2001 From: DeepBeepMeep Date: Sat, 5 Apr 2025 03:28:14 +0200 Subject: [PATCH] improved compatibility with former settings --- gradio_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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("

Wan2.1GP - Wan 2.1 model for the GPU Poor by DeepBeepMeep (GitHub)

") gr.Markdown("Original Wan 2.1 Model by Alibaba (GitHub)") gr.Markdown("Many thanks to:") + gr.Markdown("- Alibaba Wan team for the best open source video generator") gr.Markdown("- Cocktail Peanuts : QA and simple installation via Pinokio.computer") + gr.Markdown("- Tophness : created multi tabs and queuing frameworks") gr.Markdown("- AmericanPresidentJimmyCarter : added original support for Skip Layer Guidance") - gr.Markdown("- Tophness : created multi tabs framework") gr.Markdown("- Remade_AI : for creating their awesome Loras collection")