Download GeometryForcing/utils/huggingface_utils.py from BonanDing/worldmem-baseline-evals: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/BonanDing/worldmem-baseline-evals/resolve/main/GeometryForcing/utils/huggingface_utils.py
- Command line
-
hf download hf://BonanDing/worldmem-baseline-evals/GeometryForcing/utils/huggingface_utils.py
-
curl -L -o huggingface_utils.py https://huggingface.co/BonanDing/worldmem-baseline-evals/resolve/main/GeometryForcing/utils/huggingface_utils.py
341 Bytes
| from huggingface_hub import hf_hub_download | |
| def download_from_hf( | |
| filename: str, | |
| ) -> str: | |
| """ | |
| Download a file from DFoT Hugging Face model hub. | |
| https://huggingface.co/kiwhansong/DFoT | |
| """ | |
| return hf_hub_download( | |
| repo_id="kiwhansong/DFoT", | |
| cache_dir="./huggingface", | |
| filename=filename, | |
| ) | |