|
from pydantic import BaseModel, Field |
|
from typing import Optional |
|
from datetime import datetime |
|
|
|
|
|
class TranscriptionMetadata(BaseModel): |
|
duration: int = 0 |
|
language: str = "-" |
|
percentage: str = "-" |
|
content: list = [] |
|
status: str = "PENDING" |
|
|
|
|
|
class TranscriptionResult(TranscriptionMetadata): |
|
created_at: datetime = Field(default_factory=datetime.utcnow) |
|
task_id: str |
|
|
|
|
|
class BaseTranscription(TranscriptionResult): |
|
file_name: str = "-" |
|
tl_file_id: Optional[str] = "-" |
|
youtubeLink: Optional[str] = "-" |
|
|
|
|
|
class UserDetails(BaseModel): |
|
userId: str |
|
|