machine_translation / src /classmodels /translationinput.py
SoumyaJ's picture
Initial commit
c732202
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")