Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Hammad712
/
Video-Rag
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Video-Rag
/
app
/
utils
/
helpers.py
Hammad712
first commit
e84d389
about 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
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]