https://github.com/nipponjo/nmt-web-ui
A local Web UI for the huggingface/Helsinki-NLP machine translation (NMT) models
https://github.com/nipponjo/nmt-web-ui
fastapi huggingface huggingface-transformers machine-translation marian-nmt nmt python pytorch ui
Last synced: 2 months ago
JSON representation
A local Web UI for the huggingface/Helsinki-NLP machine translation (NMT) models
- Host: GitHub
- URL: https://github.com/nipponjo/nmt-web-ui
- Owner: nipponjo
- Created: 2023-10-24T18:33:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T19:26:10.000Z (over 1 year ago)
- Last Synced: 2025-01-01T20:26:00.268Z (over 1 year ago)
- Topics: fastapi, huggingface, huggingface-transformers, machine-translation, marian-nmt, nmt, python, pytorch, ui
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nmt-web-ui
A local Web UI for the [huggingface/Helsinki-NLP](https://huggingface.co/Helsinki-NLP) neural machine translation models.
Run with:
```bash
python app.py
```
Preview:

dark mode:

display cross-attention values:

Requirements:
- PyTorch
- [huggingface/transformers](https://huggingface.co/docs/transformers/installation)
- [FastAPI](https://fastapi.tiangolo.com/): for the backend api | uvicorn: for serving the app
- Install with: `pip install fastapi "uvicorn[standard]" transformers sentencepiece`