Skip to content

ecubeproject/GENAI_P4_LANGUAGE_TRANSLATOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GENAI_P4_LANGUAGE_TRANSLATOR

Project Type: Generative AI – Desktop Language Translation Tool
UI Framework: Tkinter
Backend: OpenAI API


Project Overview

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.

Key Features:

  • Easy .docx file 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

Demo Video

Watch the tool in action:

Language Translator Demo


Setup & Usage

  1. Clone the repo
    git clone <repo-url>
    cd GENAI_P4_LANGUAGE_TRANSLATOR
  2. Install dependencies
    pip install -r requirements.txt
  3. Set your OpenAI API key
    export OPENAI_API_KEY="sk-..."
  4. Run the app
    python app.py
  5. Using the UI
  6. Click Browse to select an English .docx
  7. Choose the target language
  8. Click Translate
  9. 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

Future Enhancements

  1. Multi-file translation (.docx, .txt, .pdf support)
  2. Save translated text as .docx or PDF
  3. Batch processing for multiple documents
  4. Non-GUI interface (CLI or web API)
  5. Offline/local model support using local LLaMA-based translation for cost and privacy benefits

Notes & Disclaimer

  1. Requires a valid OpenAI API key (paid subscription)
  2. Intended as a learning/demo tool—do not rely on it for critical translations
  3. API costs may apply depending on usage

Contributors

  1. Developer: [TEJAS dESAI]
  2. LinkedIn: [https://www.linkedin.com/in/tejasddesaiindia/]

License

Licensed under the MIT License.

About

This is tkinter based project and stan alone desktop application for Windows. User browses to any words document and can translate it to Gujarati, Hindi, French or Spanish

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages