MCPcopy Create free account
hub / github.com/Netflix/void-model / upload_source_method

Function upload_source_method

videox_fun/ui/wan_fun_ui.py:356–364  ·  view source on GitHub ↗
(source_method)

Source from the content-addressed store, hash-verified

354 )
355
356 def upload_source_method(source_method):
357 if source_method == "Text to Video (文本到视频)":
358 return [gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(value=None), gr.update(value=None), gr.update(value=None), gr.update(value=None), gr.update(value=None)]
359 elif source_method == "Image to Video (图片到视频)":
360 return [gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(), gr.update(), gr.update(value=None), gr.update(value=None), gr.update(value=None)]
361 elif source_method == "Video to Video (视频到视频)":
362 return [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(value=None), gr.update(value=None), gr.update(), gr.update(), gr.update(value=None)]
363 else:
364 return [gr.update(visible=False), gr.update(visible=False), gr.update(visible=True), gr.update(value=None), gr.update(value=None), gr.update(value=None), gr.update(value=None), gr.update()]
365 source_method.change(
366 upload_source_method, source_method, [
367 image_to_video_col, video_to_video_col, control_video_col, start_image, end_image,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected