Skip to content

Commit

Permalink
remove the get_nested_value no use
Browse files Browse the repository at this point in the history
  • Loading branch information
lpscr committed Nov 16, 2024
1 parent bb4d538 commit c4d7252
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/f5_tts/train/finetune_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,18 +782,6 @@ def has_supported_extension(file_name):
return file_audio


def get_nested_value(data, format):
keys = format.split("/")

item = data
for key in keys:
item = item.get(key)
if item is None:
return None

return item


def create_metadata(name_project, ch_tokenizer, progress=gr.Progress()):
path_project = os.path.join(path_data, name_project)
path_project_wavs = os.path.join(path_project, "wavs")
Expand Down

0 comments on commit c4d7252

Please sign in to comment.