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