Possibly. I would suggest first getting your dataset partitioner to work. You can take a look at the Flower Datasets guide on how to use local data.
Note that Flower Datasets is built on top of Hugging Face Dataset class, so if the guide i link above isn’t detailed enough, you should be able to find more online. For example here is the documentation that Hugging Face gives for loading CSV datasets: Load tabular data