cvss-c_es-en_s2st / utils.py
tjysdsg's picture
Move model downloading to initialization stage
ed95978
raw
history blame contribute delete
156 Bytes
def download_model(tag: str, out_dir: str):
from huggingface_hub import snapshot_download
return snapshot_download(repo_id=tag, local_dir=out_dir)