cdminix commited on
Commit
59ea25d
·
verified ·
1 Parent(s): a3969d9

fix metadata location

Browse files
Files changed (1) hide show
  1. libriheavy.py +1 -1
libriheavy.py CHANGED
@@ -108,7 +108,7 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
108
  speaker_metadata = {}
109
  for speaker_id, metadata_path in tqdm(speaker_list.items()):
110
  hf_home = os.environ.get("HF_HOME", "~/.cache/huggingface")
111
- metadata_cache = f"hf_home/libriheavy_metadata"
112
  # we always cache the speaker metadata, as it is small
113
  if os.path.exists(f"{metadata_cache}/{speaker_id}.json"):
114
  with open(f"{metadata_cache}/{speaker_id}.json", "r") as f:
 
108
  speaker_metadata = {}
109
  for speaker_id, metadata_path in tqdm(speaker_list.items()):
110
  hf_home = os.environ.get("HF_HOME", "~/.cache/huggingface")
111
+ metadata_cache = f"{hf_home}/libriheavy_metadata"
112
  # we always cache the speaker metadata, as it is small
113
  if os.path.exists(f"{metadata_cache}/{speaker_id}.json"):
114
  with open(f"{metadata_cache}/{speaker_id}.json", "r") as f: