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?
You can upload your dataset on the Hugging Face Hub indeed, see Share a dataset to the Hub
Then you can load your dataset locally using datasets
(either download it completely or load it in streaming mode) using load_dataset()