Dayak Kenyah Translator Pro is a bi-directional translation application between Indonesian and Dayak Kenyah languages. This project aims to preserve local languages through modern technology and make the Dayak Kenyah language more accessible to younger generations.
- π Bi-directional translation (Indonesian β Dayak Kenyah)
- π‘ Smart multi-word matching
- π Dark/Light Mode
- π± Responsive on all devices
- β‘ High performance with local processing
- π Available in ESP32 and Local Host versions
- Python 3.8+
- Node.js 14+
- Docker (optional)
# Clone repository
git clone https://github.com/yourusername/dayak-kenyah-translator-pro.git
cd dayak-kenyah-translator-pro
# Install dependencies
pip install -r requirements.txt
# Run the application
python main.pyThis application supports deployment using Docker with two options: CPU-only and GPU-accelerated (CUDA). Choose the mode that matches your hardware.
- NVIDIA GPU Driver
- NVIDIA Container Toolkit
- Docker with GPU support
# Build for CPU (default)
docker build -t dayak-translator .
# Build for GPU/CUDA
docker build --build-arg USE_CUDA=1 -t dayak-translator-gpu .# Run CPU version
docker run -d --name dayak-translator -p 8000:8000 dayak-translator
# Run GPU version
docker run -d --name dayak-translator-gpu --gpus all -p 8000:8000 dayak-translator-gpu- π Auto-detection of GPU/CPU mode
- π‘οΈ Security-enhanced with non-root user
- ποΈ Multi-stage build for optimal image size
- π Built-in health check
- π Environment variable customization
| Variable | Description | Default |
|---|---|---|
PORT |
Web application port | 8000 |
USE_CUDA |
Enable/disable GPU acceleration | 0 (CPU) or 1 (GPU) |
PYTHONUNBUFFERED |
Python output buffering | 1 |
# Check container status
docker ps -a
# View logs
docker logs dayak-translator
# Check resource usage
docker stats dayak-translator- GPU Mode
# Verify GPU detection
docker run --gpus all nvidia/cuda:12.0.0-base-ubuntu22.04 nvidia-smi- Container Logs
# View detailed logs
docker logs -f dayak-translator- Health Check
# Check container and health status
docker inspect dayak-translator | grep -i health- Python (Backend)
- HTML5, CSS3, JavaScript (Frontend)
- Docker
- ESP32 (for embedded version)
POST /translate- Body:
{"text": "text to translate", "direction": "id2dyk|dyk2id"} - Response:
{"result": "translated text"}
- Body:
Contributions are always welcome! See CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is developed from:
- Dayak Kenyah Translator ESP32 by Muhammad Rizky Saputra
- Dayak Kenyah Translator Local by Muhammad Bilal Maulida