An open API service indexing awesome lists of open source software.

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

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`