Spaces:
Running on T4
Running on T4
File size: 544 Bytes
2756f0f e980186 2756f0f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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
|