from datasets import load_dataset | |
# Load the dataset (assuming you've already run load_dataset.py) | |
dataset = load_dataset('csv', data_files={'train': '/Users/alexandrelordelo/Desktop/CG2RealDataset4/train.csv', 'test': '/Users/alexandrelordelo/Desktop/CG2RealDataset4/test.csv', 'validation': '/Users/alexandrelordelo/Desktop/CG2RealDataset4/validation.csv'}) | |
# Save the dataset to disk | |
dataset.save_to_disk("/Users/alexandrelordelo/Desktop/CG2RealDataset4") | |