File size: 243 Bytes
fbefd1a
 
 
 
 
 
1
2
3
4
5
6
# monkeypatch.py
import huggingface_hub

# Monkey patch: If cached_download is not available, alias it to hf_hub_download
if not hasattr(huggingface_hub, "cached_download"):
    huggingface_hub.cached_download = huggingface_hub.hf_hub_download