parent
12e326e8f3
commit
af4508f462
|
|
@ -55,7 +55,7 @@ class LoadDatasetUI(UIBase):
|
|||
load_caption_from_filename: bool,
|
||||
replace_new_line: bool,
|
||||
use_interrogator: str,
|
||||
use_interrogator_names, #: List[str], : to avoid error on gradio v3.23.0
|
||||
use_interrogator_names: List[str],
|
||||
use_custom_threshold_booru: bool,
|
||||
custom_threshold_booru: float,
|
||||
use_custom_threshold_waifu: bool,
|
||||
|
|
|
|||
|
|
@ -61,11 +61,7 @@ class MoveOrDeleteFilesUI(UIBase):
|
|||
|
||||
self.rb_move_or_delete_target_data.change(**update_args)
|
||||
|
||||
def move_files(
|
||||
target_data: str,
|
||||
target_file, #: List[str], : to avoid error on gradio v3.23.0
|
||||
caption_ext: str,
|
||||
dest_dir: str):
|
||||
def move_files(target_data: str, target_file: List[str], 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
|
||||
|
|
@ -91,10 +87,7 @@ class MoveOrDeleteFilesUI(UIBase):
|
|||
_js='() => dataset_tag_editor_gl_dataset_images_close()'
|
||||
)
|
||||
|
||||
def delete_files(
|
||||
target_data: str,
|
||||
target_file, #: List[str], : to avoid error on gradio v3.23.0
|
||||
caption_ext: str):
|
||||
def delete_files(target_data: str, target_file: List[str], 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue