(source_method)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected