This repo contains dockerized version of the translator module used in Subtitle Translation Project. The goal is to build a simple app to translate text from English to Spanish, so this is a simplified version of the original project.
- Docker
app_translator_with_docker>docker build image <img_name> .
app_translator_with_docker>docker run -d -p <port>:5000 --name <container_name> <img_name>
app_translator_with_docker>curl -X POST localhost:<port>/translate -H "Content-Type:application/json" -d "{\"text\":\"This is just a test\"}"