fix metadata location
Browse files- 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:
|