Download src/trafficvision/data/sources/huggingface_stream.py from sunnycloudhust/TrafficVision: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/datasets/sunnycloudhust/TrafficVision/resolve/main/src/trafficvision/data/sources/huggingface_stream.py
- Command line
-
hf download hf://datasets/sunnycloudhust/TrafficVision/src/trafficvision/data/sources/huggingface_stream.py
-
curl -L -o huggingface_stream.py https://huggingface.co/datasets/sunnycloudhust/TrafficVision/resolve/main/src/trafficvision/data/sources/huggingface_stream.py
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. | |
| """ | |