nipponjo / nmt-web-ui

A local Web UI for the huggingface/Helsinki-NLP machine translation (NMT) models

Repository from Github https://github.comnipponjo/nmt-web-uiRepository from Github https://github.comnipponjo/nmt-web-ui

nmt-web-ui

A local Web UI for the huggingface/Helsinki-NLP neural machine translation models.

Run with:

python app.py

Preview:

dark mode:

display cross-attention values:

Requirements:

  • PyTorch
  • huggingface/transformers
  • FastAPI: for the backend api | uvicorn: for serving the app
  • Install with: pip install fastapi "uvicorn[standard]" transformers sentencepiece

About

A local Web UI for the huggingface/Helsinki-NLP machine translation (NMT) models


Languages

Language:Python 72.6%Language:HTML 20.5%Language:CSS 6.9%