Skip to content

akariwill/PDF-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Translator

This repository provides a Web UI and API endpoint for translating PDF files using OpenAI's GPT models, while preserving the original document layout.

GUI Screenshot

🧠 Overview

PDF Translator is a document translation tool powered by Large Language Models (LLMs), specifically designed to convert complex foreign literature and technical documents into clear, easy-to-understand translations. Unlike traditional translation tools, it offers deeper semantic understanding and preserves the original layout and formatting of the document.


🚀 Key Features

  • Deep Understanding with LLMs
    Uses OpenAI GPT (or compatible models like ChatGLM2) for accurate and fluent translations.

  • Optimized Reading Experience

    • Automatically simplifies dense academic/technical text.
    • Adjustable generation length to suit various reading needs.
    • Efficiently handles high-density information.
  • Layout Preservation
    Translated output keeps the original layout and formatting of the source PDF.

  • Modular & Extendable
    Written in object-oriented Python, making it easy to customize and integrate into other systems.

  • Interactive GUI
    Built with Streamlit, supports batch translation, accessible via browser.


🖥️ Interactive Interface

Web Interface

Access to GUI via browser.

http://localhost:8501/

Installation

  1. Clone this repository
   git clone https://github.com/akariwill/PDF-Translator.git
   cd pdf_translator

venv installation

  1. create venv and activate

prerequesites:

  • streamlit, openai.. etc
python3 -m venv .
source bin/activate
  1. install requirements
pip3 install -r requirements.txt
  1. run
streamlit run server.py

License

This project is licensed under GPL-3.0. For more details, please see the LICENSE file.

About

PDF Translator translates English PDF files into any language, preserving the original layout.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages