diff --git a/scripts/ui/block_load_dataset.py b/scripts/ui/block_load_dataset.py index 80307fb..0078871 100644 --- a/scripts/ui/block_load_dataset.py +++ b/scripts/ui/block_load_dataset.py @@ -55,7 +55,7 @@ class LoadDatasetUI(UIBase): load_caption_from_filename: bool, replace_new_line: bool, use_interrogator: str, - use_interrogator_names: List[str], + use_interrogator_names, #: List[str], : to avoid error on gradio v3.23.0 use_custom_threshold_booru: bool, custom_threshold_booru: float, use_custom_threshold_waifu: bool, diff --git a/scripts/ui/tab_move_or_delete_files.py b/scripts/ui/tab_move_or_delete_files.py index f22af9b..9c99700 100644 --- a/scripts/ui/tab_move_or_delete_files.py +++ b/scripts/ui/tab_move_or_delete_files.py @@ -61,7 +61,11 @@ class MoveOrDeleteFilesUI(UIBase): self.rb_move_or_delete_target_data.change(**update_args) - def move_files(target_data: str, target_file: List[str], caption_ext: str, dest_dir: str): + def move_files( + target_data: str, + target_file, #: List[str], : to avoid error on gradio v3.23.0 + caption_ext: str, + dest_dir: str): move_img = 'Image File' in target_file move_txt = 'Caption Text File' in target_file move_bak = 'Caption Backup File' in target_file @@ -87,7 +91,10 @@ class MoveOrDeleteFilesUI(UIBase): _js='() => dataset_tag_editor_gl_dataset_images_close()' ) - def delete_files(target_data: str, target_file: List[str], caption_ext: str): + def delete_files( + target_data: str, + target_file, #: List[str], : to avoid error on gradio v3.23.0 + caption_ext: str): delete_img = 'Image File' in target_file delete_txt = 'Caption Text File' in target_file delete_bak = 'Caption Backup File' in target_file