# Accessing local data files

**URL:** <https://discuss.huggingface.co/t/accessing-local-data-files/23299>\
**Category:** 🤗Datasets\
**Created:** [September 18, 2022, 12:21pm UTC](https://discuss.huggingface.co/t/accessing-local-data-files/23299 "2022-09-18T12:21:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PremDeep](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/premdeep/32/6106_2.png) [@PremDeep](https://discuss.huggingface.co/u/PremDeep)\
**Post date:** [September 18, 2022, 12:21pm UTC](https://discuss.huggingface.co/t/accessing-local-data-files/23299/1 "2022-09-18T12:21:53Z")

</div>

Instead of accessing the dataset files from local machine. Is there a way it could be uploaded to huggingspace files and access it from there?

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [September 23, 2022, 4:58pm UTC](https://discuss.huggingface.co/t/accessing-local-data-files/23299/2 "2022-09-23T16:58:16Z")

</div>

You can upload your dataset on the Hugging Face Hub indeed, see [Share a dataset to the Hub](https://huggingface.co/docs/datasets/upload_dataset)

Then you can load your dataset locally using `datasets` (either download it completely or load it in streaming mode) using `load_dataset()`
