machine_translation / src /classmodels /translationinput.py
SoumyaJ's picture
Initial commit
c732202
raw
history blame
239 Bytes
from pydantic import BaseModel, Field
class TranslationInput(BaseModel):
text_to_translate : str = Field(..., description="Text to be translated")
target_language : str = Field(..., description="Target language for translation")