minhho commited on
Commit
af73712
·
1 Parent(s): 1cbdbc6

Fix: Remove unsupported 'info' parameter from gradio.File components

Browse files
facefusion/uis/components/source.py CHANGED
@@ -23,8 +23,7 @@ def render() -> None:
23
  SOURCE_FILE = gradio.File(
24
  label = wording.get('uis.source_file'),
25
  file_count = 'multiple',
26
- value = state_manager.get_item('source_paths') if has_source_audio or has_source_image else None,
27
- info = 'Upload the source image (face to copy) or audio file (for lip sync). This will be applied to the target.'
28
  )
29
  source_file_names = [ source_file_value.get('path') for source_file_value in SOURCE_FILE.value ] if SOURCE_FILE.value else None
30
  source_audio_path = get_first(filter_audio_paths(source_file_names))
 
23
  SOURCE_FILE = gradio.File(
24
  label = wording.get('uis.source_file'),
25
  file_count = 'multiple',
26
+ value = state_manager.get_item('source_paths') if has_source_audio or has_source_image else None
 
27
  )
28
  source_file_names = [ source_file_value.get('path') for source_file_value in SOURCE_FILE.value ] if SOURCE_FILE.value else None
29
  source_audio_path = get_first(filter_audio_paths(source_file_names))
facefusion/uis/components/target.py CHANGED
@@ -22,8 +22,7 @@ def render() -> None:
22
  is_target_video = is_video(state_manager.get_item('target_path'))
23
  TARGET_FILE = gradio.File(
24
  label = wording.get('uis.target_file'),
25
- value = state_manager.get_item('target_path') if is_target_image or is_target_video else None,
26
- info = 'Upload the target image or video where the face will be swapped. This is the base content to be modified.'
27
  )
28
  target_image_options : ComponentOptions =\
29
  {
 
22
  is_target_video = is_video(state_manager.get_item('target_path'))
23
  TARGET_FILE = gradio.File(
24
  label = wording.get('uis.target_file'),
25
+ value = state_manager.get_item('target_path') if is_target_image or is_target_video else None
 
26
  )
27
  target_image_options : ComponentOptions =\
28
  {