File size: 270 Bytes
5c0b992 |
1 2 3 4 5 6 7 8 9 10 11 |
import datasets
db = datasets.load_dataset('vivym/midjourney-prompts', cache_dir='./tmp')
captions = list(set(db['train']['prompt']))
print(len(captions))
dataset = datasets.Dataset.from_dict({"text": captions})
dataset.push_to_hub("Geonmo/midjourney-prompts-only")
|