Initial Commit
This commit is contained in:
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