Download app/utils/helpers.py from Hammad712/Video-Rag: direct link, hf CLI and curl.
- Browser
- Download file 167 Bytes
-
https://huggingface.co/spaces/Hammad712/Video-Rag/resolve/main/app/utils/helpers.py
- Command line
-
hf download hf://spaces/Hammad712/Video-Rag/app/utils/helpers.py
-
curl -L -o helpers.py https://huggingface.co/spaces/Hammad712/Video-Rag/resolve/main/app/utils/helpers.py
167 Bytes
| # Generic helper functions | |
| def chunk_list(lst, size): | |
| """Yield successive chunks from list.""" | |
| for i in range(0, len(lst), size): | |
| yield lst[i:i+size] | |