Relative paths on the Hub
#2
by
albertvillanova
HF staff
- opened
Do you know you can use relative paths on the Hub?
For example, to download the "bg" file, you just need:
downloaded_files = dl_manager.download(["data/bg.jsonl.xz"])
- Note the path is relative: it does not start with "/"
- No need of using complete HTTP URLs (
"https://huggingface.co/datasets/joelito/mc4_legal/resolve/main/data/bg.jsonl.xz"
), nor calling tohf_hub_url
Aah, good to know. No, I didn't know so far. Thanks