Spaces:
Sleeping
Sleeping
from pydantic import BaseModel, Field | |
from typing import Optional | |
class TranslationOutput(BaseModel): | |
translated_text: Optional[str] = Field(None, description="The final text which has been translated to output") | |
status_code: int = Field(description="Status code") | |
message : Optional[str] = Field(None, description="track any exception message received") | |