import gradio as gr nets=[ "fffiloni/Pix2Pix-Video", "fffiloni/ControlNet-Video", "fffiloni/x-decoder-video" ] width="100%" height="2500" class NetLink: x="" def change(self,link): ch = link.replace("/","-").replace("_","-") return f"https://{ch}.hf.space" n=NetLink() def fn0(): return gr.Accordion.update(label=f"{nets[0]}",visible=True),gr.Accordion.update(label=f"{nets[1]}",visible=False),gr.Accordion.update(label=f"{nets[2]}",visible=False) def fn1(): return gr.Accordion.update(label=f"{nets[0]}",visible=False),gr.Accordion.update(label=f"{nets[1]}",visible=True),gr.Accordion.update(label=f"{nets[2]}",visible=False) def fn2(): return gr.Accordion.update(label=f"{nets[0]}",visible=False),gr.Accordion.update(label=f"{nets[1]}",visible=False),gr.Accordion.update(label=f"{nets[2]}",visible=True) with gr.Blocks(css="sauce.css") as control_app: gr.Markdown("""