A simple and clean TensorFlow-driven German to English translate using a custom-trained Transformer model from scratch repo and accessed through an API built with FastAPI backend repo.
- Translate German text to English via API
- Frontend built with Next.js and Tailwind CSS
- Backend with FastAPI
Backend API (FastAPI) (repo)
The frontend expects a POST endpoint at:
POST /translate
Content-Type: application/json
Body: { "text": "Ich bin klug" }
Response:
{ "translation": "I am smart" }