KeyError: 'csv' using a csv file with KeyDataset

load_dateset will accept the dataset name which is either uploaded in the hugging face datasets or you pass to a directory where it will process the file in some format which contains some perocssing file .

See here for more documentation