Spaces:
Runtime error
Runtime error
Download text/bert_utils.py from KritiAI/Bert-VITS2: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/KritiAI/Bert-VITS2/resolve/main/text/bert_utils.py
- Command line
-
hf download hf://spaces/KritiAI/Bert-VITS2/text/bert_utils.py
-
curl -L -o bert_utils.py https://huggingface.co/spaces/KritiAI/Bert-VITS2/resolve/main/text/bert_utils.py
322 Bytes
| from pathlib import Path | |
| from huggingface_hub import hf_hub_download | |
| def _check_bert(repo_id, files, local_path): | |
| for file in files: | |
| if not Path(local_path).joinpath(file).exists(): | |
| hf_hub_download( | |
| repo_id, file, local_dir=local_path, local_dir_use_symlinks=False | |
| ) | |