From cd6d2012f6e4f313f7583dbe21f293fa24f80980 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Tue, 28 Jan 2025 10:34:46 +0100 Subject: [PATCH] Remove upload event handler --- facefusion/uis/components/face_selector.py | 2 +- facefusion/uis/components/output_options.py | 2 +- facefusion/uis/components/temp_frame.py | 2 +- facefusion/uis/components/trim_frame.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/facefusion/uis/components/face_selector.py b/facefusion/uis/components/face_selector.py index 5b806b9..cfbb53f 100644 --- a/facefusion/uis/components/face_selector.py +++ b/facefusion/uis/components/face_selector.py @@ -112,7 +112,7 @@ def listen() -> None: 'target_image', 'target_video' ]): - for method in [ 'upload', 'change', 'clear' ]: + for method in [ 'change', 'clear' ]: getattr(ui_component, method)(update_reference_face_position) getattr(ui_component, method)(update_reference_position_gallery, outputs = REFERENCE_FACE_POSITION_GALLERY) diff --git a/facefusion/uis/components/output_options.py b/facefusion/uis/components/output_options.py index c65489f..62eda27 100644 --- a/facefusion/uis/components/output_options.py +++ b/facefusion/uis/components/output_options.py @@ -134,7 +134,7 @@ def listen() -> None: 'target_image', 'target_video' ]): - for method in [ 'upload', 'change', 'clear' ]: + for method in [ 'change', 'clear' ]: getattr(ui_component, method)(remote_update, outputs = [ OUTPUT_IMAGE_QUALITY_SLIDER, OUTPUT_IMAGE_RESOLUTION_DROPDOWN, OUTPUT_AUDIO_ENCODER_DROPDOWN, OUTPUT_AUDIO_QUALITY_SLIDER, OUTPUT_AUDIO_VOLUME_SLIDER, OUTPUT_VIDEO_ENCODER_DROPDOWN, OUTPUT_VIDEO_PRESET_DROPDOWN, OUTPUT_VIDEO_QUALITY_SLIDER, OUTPUT_VIDEO_RESOLUTION_DROPDOWN, OUTPUT_VIDEO_FPS_SLIDER ]) diff --git a/facefusion/uis/components/temp_frame.py b/facefusion/uis/components/temp_frame.py index c1a9838..cba6b40 100644 --- a/facefusion/uis/components/temp_frame.py +++ b/facefusion/uis/components/temp_frame.py @@ -27,7 +27,7 @@ def listen() -> None: target_video = get_ui_component('target_video') if target_video: - for method in [ 'upload', 'change', 'clear' ]: + for method in [ 'change', 'clear' ]: getattr(target_video, method)(remote_update, outputs = TEMP_FRAME_FORMAT_DROPDOWN) diff --git a/facefusion/uis/components/trim_frame.py b/facefusion/uis/components/trim_frame.py index c264f2a..d8fe6fe 100644 --- a/facefusion/uis/components/trim_frame.py +++ b/facefusion/uis/components/trim_frame.py @@ -39,7 +39,7 @@ def listen() -> None: 'target_image', 'target_video' ]): - for method in [ 'upload', 'change', 'clear' ]: + for method in [ 'change', 'clear' ]: getattr(ui_component, method)(remote_update, outputs = [ TRIM_FRAME_RANGE_SLIDER ])