Download chunking.py from p0000000/test: direct link, hf CLI and curl.
- Browser
- Download file 146 Bytes
-
https://huggingface.co/spaces/p0000000/test/resolve/94de8a3e652a389c4cc8cb404374709f100874e9/chunking.py
- Command line
-
hf download hf://spaces/p0000000/test@94de8a3e652a389c4cc8cb404374709f100874e9/chunking.py
-
curl -L -o chunking.py https://huggingface.co/spaces/p0000000/test/resolve/94de8a3e652a389c4cc8cb404374709f100874e9/chunking.py
146 Bytes
| def chunk_list(lst, n): | |
| """Divise la liste lst en sous-listes de taille n.""" | |
| for i in range(0, len(lst), n): | |
| yield lst[i:i + n] | |