Turn on the viewer
Set theCURATOR_VIEWER environment variable before you run Curator.
viewer_url attribute of the CuratorResponse.
Use a Bespoke Labs API key
When you set an API key, Curator links your datasets to your Bespoke Labs account. You can then do these things.- Keep your datasets private.
- See all the datasets you have made.
- Share datasets with other people.
- See what your data generation cost over time.
1
Create an API key
Sign in to the Bespoke Labs console and create a key.
2
Set the environment variables
3
Find your datasets
The Datasets page lists the datasets made with your keys and the ones others shared with you. The Cost report page shows what you spent on data generation over a period.
Upload an existing dataset
Usepush_to_viewer to upload a Hugging Face Dataset that you already have. You can also pass the ID of a dataset on the Hugging Face Hub. The function returns the viewer link, and it works without CURATOR_VIEWER.
Download a dataset from the viewer
Useload_dataset with the dataset ID, which is the last part of the viewer link. It returns a Hugging Face Dataset and caches it in the Curator cache directory.
The local
curator-viewer command is retired. Use the hosted viewer instead.