File size: 341 Bytes
59630ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
    )