TrafficVision / src /trafficvision /data /sources /huggingface_stream.py
sunnycloudhust's picture
Add TrafficVision source code and project configuration
6b41115 verified
Raw History Blame Contribute Delete
281 Bytes
from .cloud_storage import CloudObjectStorageSource
class HuggingFaceStreamingSource(CloudObjectStorageSource):
"""Use hf://datasets/<repo_id>/<path>. HF_TOKEN is read by the HF filesystem.
No token is stored in configs. Shares the same sequential shard reader.
"""