This is a text translation service using the t5-base model from huggingface The api service is built using Fastapi
- Translate text among 4 languages namely
- English
- French
- German
- Romanian
After running the app, the documentation is available at the "/docs" endpoint
Minimum hardware requirements CPU: 4GB RAM DISK: 2GB
You need to have in order to successfully run the project.
Clone the project
git clone the-project
Go to the project directory
cd Text-Translation-Service-Using-t5-base-model
Install dependencies
poetry install
Start the server
poetry run uvicorn main:app --host 0.0.0.0 --port 80
To deploy the project,
- Build the image with
$ docker build . -t t5-base-api-service
- Then run it in a container
$ docker run --publish 80:80 t5-base-api-service
Alternately, the image can be pulled from docker hub
- Pull the image
docker pull peprah/t5-base-api-service:latest
- Run in container
$ docker run --publish 80:80 peprah/t5-base-api-service