Project Type: Generative AI – Desktop Language Translation Tool
UI Framework: Tkinter
Backend: OpenAI API
GENAI_P4_LANGUAGE_TRANSLATOR is a lightweight desktop application built using Python’s Tkinter GUI toolkit. It enables users to select an English .docx file, choose a target language, and receive translated text displayed directly in the app’s interface. It uses the OpenAI API for translation.
- Easy
.docxfile selection via GUI - Supports translation from English into any selected target language
- Displays translated text in-app with a single button click
- Minimal installation footprint—no need for web servers
Watch the tool in action:
- Clone the repo
git clone <repo-url> cd GENAI_P4_LANGUAGE_TRANSLATOR
- Install dependencies
pip install -r requirements.txt
- Set your OpenAI API key
export OPENAI_API_KEY="sk-..."
- Run the app
python app.py
- Using the UI
- Click Browse to select an English .docx
- Choose the target language
- Click Translate
- View the translated text in the app text box
## Folder Structure
.
├── app.py # Tkinter application
├── requirements.txt # Python dependencies
├── utils.py # File reading & translation logic
├── config.py # Secure API key handling
├── examples/ # Sample `.docx` files (optional)
└── README.md # This file
- Multi-file translation (.docx, .txt, .pdf support)
- Save translated text as .docx or PDF
- Batch processing for multiple documents
- Non-GUI interface (CLI or web API)
- Offline/local model support using local LLaMA-based translation for cost and privacy benefits
- Requires a valid OpenAI API key (paid subscription)
- Intended as a learning/demo tool—do not rely on it for critical translations
- API costs may apply depending on usage
- Developer: [TEJAS dESAI]
- LinkedIn: [https://www.linkedin.com/in/tejasddesaiindia/]
