(mode)
| 150 | # UI Setup |
| 151 | # --------------------------------------------------------------------------- |
| 152 | def update_conditional_visibility(mode): |
| 153 | if mode == "Image-to-Video": |
| 154 | return gr.update(visible=True), gr.update(visible=False) |
| 155 | elif mode == "Video-to-Video": |
| 156 | return gr.update(visible=False), gr.update(visible=True) |
| 157 | else: |
| 158 | return gr.update(visible=False), gr.update(visible=False) |
| 159 | |
| 160 | |
| 161 | CSS = """ |