Initial Commit
This commit is contained in:
BIN
app/models/__pycache__/translation.cpython-313.pyc
Normal file
BIN
app/models/__pycache__/translation.cpython-313.pyc
Normal file
Binary file not shown.
8
app/models/translation.py
Normal file
8
app/models/translation.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
class TranslationRequest(BaseModel):
|
||||
text: str
|
||||
target_language: str # Example: 'id' for Indonesian, 'en' for English, etc.
|
||||
|
||||
class TranslationResponse(BaseModel):
|
||||
translated_text: str
|
||||
Reference in New Issue
Block a user