Spaces:
Sleeping
Sleeping
Download models.py from valiyevfagan/test_ui2: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/spaces/valiyevfagan/test_ui2/resolve/main/models.py
- Command line
-
hf download hf://spaces/valiyevfagan/test_ui2/models.py
-
curl -L -o models.py https://huggingface.co/spaces/valiyevfagan/test_ui2/resolve/main/models.py
651 Bytes
| """Data models for the Audio Labeling Tool.""" | |
| from dataclasses import dataclass | |
| from typing import TypedDict | |
| class LabelRow(TypedDict): | |
| """TypedDict representing a single row in the metadata CSV.""" | |
| source: str # Audio filename only (e.g., "clip_001.wav") | |
| transcription: str # Corrected transcription text | |
| gender: str # "male" or "female" | |
| pii: str # "True" or "False" (string representation in CSV) | |
| labeler: str # Username of the labeler | |
| class LabelRecord: | |
| """Dataclass for constructing a label before saving.""" | |
| source: str | |
| transcription: str | |
| gender: str | |
| pii: bool | |
| labeler: str | |