MCPcopy
hub / github.com/PKU-YuanGroup/Helios / update_conditional_visibility

Function update_conditional_visibility

app.py:152–158  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

150# UI Setup
151# ---------------------------------------------------------------------------
152def 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
161CSS = """

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected