joakimvivas/machine-translation-service

Helsinki-NLP based English-Spanish-French Machine Translation App

2

stars

6

commits

HTML

primary language

Oct 16, 2024

updated

machine-translation-service.vercel.app

README

Helsinki-NLP based English-Spanish-French Machine Translation App

This is a Python Flask application based on the Huggingface transformer library with the "Helsinki-NLP" model developed by the Language Technology Research Group of the University of Helsinki and CSS based on Materialize, a modern responsive CSS framework based on Material Design by Google.

Homescreen

Run the Application

To run Locally

  1. Clone the repository in your Local:
git clone https://github.com/joakimvivas/machine-translation-service.git
  1. Cd into the repo as such:
cd machine-translation-service
  1. Create the Python virtual environment
python3 -m venv machine-translation

Inititate the Python virtual environment

source machine-translation/bin/activate
  1. Install requirements:
pip install -r requirements.txt
  1. Run the server using this one simple command:
flask run

You can now access the app on your local browser by using

http://localhost:5000/

To run with docker

  1. Pre-requirements: You need to have installed Docker (Guide to install it)

  2. Run the Docker build

docker build -t machine-translation-service .
  1. Run and Start the Docker container
docker run --name translate -p 5000:5000 -d machine-translation-service

The front end should then become available at http://localhost:5000

Important: The first time, the time to load could be higher because the application will download the AI models from its original data source.

Contributors

joakimvivas

6 commits

joakimvivas/machine-translation-service

Helsinki-NLP based English-Spanish-French Machine Translation App

2

stars

6

commits

HTML

primary language

Oct 16, 2024

updated

machine-translation-service.vercel.app

README

Helsinki-NLP based English-Spanish-French Machine Translation App

This is a Python Flask application based on the Huggingface transformer library with the "Helsinki-NLP" model developed by the Language Technology Research Group of the University of Helsinki and CSS based on Materialize, a modern responsive CSS framework based on Material Design by Google.

Homescreen

Run the Application

To run Locally

  1. Clone the repository in your Local:
git clone https://github.com/joakimvivas/machine-translation-service.git
  1. Cd into the repo as such:
cd machine-translation-service
  1. Create the Python virtual environment
python3 -m venv machine-translation

Inititate the Python virtual environment

source machine-translation/bin/activate
  1. Install requirements:
pip install -r requirements.txt
  1. Run the server using this one simple command:
flask run

You can now access the app on your local browser by using

http://localhost:5000/

To run with docker

  1. Pre-requirements: You need to have installed Docker (Guide to install it)

  2. Run the Docker build

docker build -t machine-translation-service .
  1. Run and Start the Docker container
docker run --name translate -p 5000:5000 -d machine-translation-service

The front end should then become available at http://localhost:5000

Important: The first time, the time to load could be higher because the application will download the AI models from its original data source.

Contributors

joakimvivas

6 commits

Languages

HTML

77.4%

Python

21.4%

Dockerfile

1.2%