Files
hao-ai-lab-FastVideo/ui/models/create_dataset_request.py
T
2026-04-02 16:07:24 -07:00

12 lines
383 B
Python

# SPDX-License-Identifier: Apache-2.0
"""Request model for creating a dataset."""
from pydantic import BaseModel
class CreateDatasetRequest(BaseModel):
name: str
upload_path: str = "" # One-time path from upload; moved to datasets_upload_dir/{id}
file_names: list[str] = []
captions: dict[str, str] = {} # optional: file_name -> caption from videos2caption.json