A metaflow card that renders HTML inputs.
Project description
Installation
pip install metaflow-card-hf-dataset
Usage
After installing the module, you can add any HuggingFace dataset to your Metaflow tasks by using the @huggingface_dataset
decorator. This decorator has a id
field, which is the dataset ID from HuggingFace.
from metaflow import FlowSpec, step, huggingface_dataset
class Flow(FlowSpec):
@huggingface_dataset(id="princeton-nlp/SWE-bench")
@step
def start(self):
self.next(self.end)
@huggingface_dataset(id="argilla/databricks-dolly-15k-curated-en")
@step
def end(self):
pass
if __name__ == '__main__':
Flow()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for metaflow_card_hf_dataset-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cabc188f42f5880d98357806d229bc7c5ce18b21b672725a7eb013e06332f7a |
|
MD5 | 4b00d2f49ee1a3f3fb7bf40a85b6fc47 |
|
BLAKE2b-256 | f0ae1417d4c135003c6a0a205b2e849c57ba07398e448ad7fa67a8c0b8a79712 |
Close
Hashes for metaflow_card_hf_dataset-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7aae9efcc116d74e2737920dfe7f0db52cffe57e45571f4f21497fafdaa8288 |
|
MD5 | bd00c8b0bac46bb00126a64a817292fd |
|
BLAKE2b-256 | 64f3fbc675d9482eb8f78803fc488c400726cd6d1520ec839caebbeae5ab61de |