Download src/lib/batchJobs.ts from Jingyi-Z/lerobotac-dataset-visualizer: direct link, hf CLI and curl.
- Browser
- Download file 826 Bytes
-
https://huggingface.co/spaces/Jingyi-Z/lerobotac-dataset-visualizer/resolve/main/src/lib/batchJobs.ts
- Command line
-
hf download hf://spaces/Jingyi-Z/lerobotac-dataset-visualizer/src/lib/batchJobs.ts
-
curl -L -o batchJobs.ts https://huggingface.co/spaces/Jingyi-Z/lerobotac-dataset-visualizer/resolve/main/src/lib/batchJobs.ts
826 Bytes
| // The unit of work the batch page hands to a worker thread: one episode | |
| // of one dataset, read and annotated end to end (parquet table, raw | |
| // sidecars, the Hub's annotation file, the detector). Plain data only — | |
| // it crosses a structured-clone boundary. | |
| import type { DetectionThresholds } from "./eventDetection"; | |
| import type { RigProfile } from "./rigProfile"; | |
| export interface EpisodeJob { | |
| profile: RigProfile; | |
| org: string; | |
| dataset: string; | |
| /** `?root=` sub-folder of per-episode-folder datasets, else null */ | |
| root: string | null; | |
| /** the signed-in user's Hub token: a worker has no localStorage */ | |
| token: string | null; | |
| episode: number; | |
| /** this episode's raw sidecar paths (listed once on the main thread) */ | |
| rawPaths: string[]; | |
| useRaw: boolean; | |
| thresholds: Partial<DetectionThresholds>; | |
| } | |