Spaces:
Running on T4
Running on T4
Download backend/app/modules/uploads/schemas.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/uploads/schemas.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/app/modules/uploads/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/uploads/schemas.py
544 Bytes
| from datetime import datetime | |
| from typing import Literal | |
| from uuid import UUID | |
| from pydantic import Field | |
| from app.common.schemas import RequestModel, ResponseModel | |
| class UploadIn(RequestModel): | |
| kind: Literal["video", "thumbnail", "audio", "drill_video", "image"] | |
| content_type: str = Field(min_length=1, max_length=40) | |
| size_bytes: int = Field(gt=0) | |
| duration_sec: float | None = Field(default=None, gt=0) | |
| class UploadOut(ResponseModel): | |
| upload_id: UUID | |
| url: str | |
| headers: dict[str, str] | |
| expires_at: datetime | |