import json from datasets import Dataset dataset = Dataset.from_dict(data)