Skip to content

Latest commit

 

History

History
42 lines (21 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (21 loc) · 1.02 KB

Open Translate

Neural Machine Translation with React + Hugging Face Transformers

Setup and installation

Frontend

  • Run npm i && npm start to start the frontend

Backend

  • cd api

  • Create a virtual environment:

  • For Unix based OS:

  • python3 -m venv venv

  • source venv/bin/activate

  • For Windows:

  • python -m venv venv

  • venv\Scripts\activate

  • Install tools and libraries inside venv: pip install -r requirements.txt

Important

Pytorch needs to be installed in order to execute translation.

Please follow the instructions given: how to get started with pytorch. Choose the compute platform carefully, if you have a GPU supported computer choose a CUDA version, if you do not have a GPU choose CPU as the compute platform.

Run the command inside venv and make sure you have CUDA installed in your computer.

  • Run npm run start-api to start the backend