Download scripts/r5_print/r5_print_more_fetch.py from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_more_fetch.py
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_print/r5_print_more_fetch.py
-
curl -L -o r5_print_more_fetch.py https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_more_fetch.py
343 Bytes
| import sys | |
| from huggingface_hub import snapshot_download | |
| dest = sys.argv[1] | |
| pats = ["README.md", "paragraph/MORE_paragraph.json"] + [f"paragraph/images/{c}_*" for c in ("kk", "ky", "uz", "tr", "az", "tt", "ba", "tk", "sah")] | |
| p = snapshot_download(repo_id="zimoqingfeng/MORE", repo_type="dataset", local_dir=dest, allow_patterns=pats) | |
| print(p) | |