forked from NVIDIA-NeMo/DataDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataset_card.py
More file actions
21 lines (13 loc) · 745 Bytes
/
dataset_card.py
File metadata and controls
21 lines (13 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from pathlib import Path
from huggingface_hub import DatasetCard
TEMPLATE_DATA_DESIGNER_DATASET_CARD_PATH = Path(__file__).parent / "dataset_card_template.md"
class DataDesignerDatasetCard(DatasetCard):
"""Dataset card for NeMo Data Designer datasets.
This class extends Hugging Face's DatasetCard with a custom template
specifically designed for Data Designer generated datasets.
The template is located at `data_designer/interface/huggingface/dataset_card_template.md`.
"""
default_template_path = TEMPLATE_DATA_DESIGNER_DATASET_CARD_PATH