Skip to main content

InstaPPT

InstaPPT is an AI-powered PowerPoint translation tool designed to preserve the original visual fidelity of your slides while providing high-quality translations.

InstaPPT UI

Demo

Here is a visual comparison of the original and translated slides:

Visual Comparison

View full comparison PDF

Features

  • AI Translation: Uses advanced LLMs (like GPT-4, DeepSeek) for accurate, context-aware translation.
  • Visual Fidelity: Preserves fonts, colors, sizes, and layout.
  • Visual Comparison Report: Generates a side-by-side PDF report showing the original and translated slides as images, ensuring "what you see is what you get".
  • Smart Caching: Caches translation results to save costs and time on repeated runs.
  • Cross-Platform: Works on macOS (optimized) and Windows.

Architecture

graph TD
    User([User]) -->|Input| Interface
    
    subgraph Interface ["User Interface"]
        CLI["Command Line"]
        UI["Web UI (Gradio)"]
    end
    
    Interface --> Controller["Core Controller"]
    
    subgraph Pipeline ["Processing Pipeline"]
        Parser["PPTX Parser"] -->|Extract Text| Segments["Text Segments"]
        
        subgraph Translation ["LLM Translation Loop"]
            Step1[Translation] --> Step2[Evaluation]
            Step2 -- "Low Score" --> Step3[Optimization]
            Step2 -- "High Score" --> Ready[Ready]
            Step3 --> Ready
        end
        
        Segments -->|Parallel Processing| Translation
        Translation <-->|API Calls| LLM[("LLM Provider")]
        
        Ready --> Assembler["PPTX Assembler"]
        Assembler -->|Generate| Artifacts
    end
    
    Controller --> Pipeline
    
    subgraph Artifacts ["Output Files"]
        File1["Translated PPTX"]
        File2["Comparison PDF"]
        File3["Evaluation Report"]
    end

Prerequisites

  1. Python 3.10+
  2. LibreOffice: Required for converting PPTX to PDF.
    • macOS: brew install --cask libreoffice
    • Windows: Install from official website.
  3. Poppler: Required for the image-based visual comparison.
    • macOS: brew install poppler
    • Windows: Download binary and add to PATH.

Installation

Install via Pip

uv pip install instappt

Development Setup

# Create virtual environment
uv venv

# Activate virtual environment
source .venv/bin/activate

# Install dependencies
uv sync

Usage

CLI Usage (After Installation)

If you installed the package via pip, you can use the instappt command directly:

instappt --input input.pptx --output output_dir --lang English --config model_info.json

Development Usage

If you are running from source:

python main.py --input input.pptx --output output_dir --lang English

Using a Configuration File

Create a model_info.json file to configure your LLM settings:

{
    "translator": {
        "model": "gpt-4o",
        "api_key": "sk-...",
        "base_url": "https://api.openai.com/v1"
    }
}

Run with config:

python main.py --input input.pptx --output output_dir --lang English --config model_info.json

Force Re-translation (Disable Cache)

If you want to ignore the cache and force a fresh translation:

python main.py --input input.pptx --output output_dir --lang English --config model_info.json --no-cache

SDK Usage

You can also use InstaPPT as a Python library in your own projects.

from instappt.core import PPTTranslator
from instappt.models import SDKConfig, ModelConfig

# 1. Configure Models
config = SDKConfig(
    translator_config=ModelConfig(
        model="gpt-4o",
        api_key="sk-...",
        base_url="https://api.openai.com/v1"
    ),
    optimizer_config=ModelConfig(
        model="gpt-4o",
        api_key="sk-...",
        base_url="https://api.openai.com/v1"
    ),
    evaluator_config=ModelConfig(
        model="gpt-4o",
        api_key="sk-...",
        base_url="https://api.openai.com/v1"
    ),
    enable_cache=True # Set to False to disable caching
)

# 2. Initialize Translator
translator = PPTTranslator(config, concurrency=32)

# 3. Process PPTX
input_file = "presentation.pptx"
output_file = "presentation_translated.pptx"
target_language = "English"

translator.process_ppt(input_file, output_file, target_language)

# 4. Generate Reports (Optional)
translator.generate_reports(
    output_dir="output_folder",
    report_prefix="my_report_",
    original_pptx=input_file,
    translated_pptx=output_file
)

Output

The tool generates:

  1. Translated PPTX: [filename]_translated.pptx
  2. Visual Comparison: [filename]_comparison.pdf (Side-by-side images)
  3. Assessment Report: [filename]_assessment_report.pdf (Quality metrics)

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.

All files are saved in the specified output directory.

Metadata

Release files for instappt 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for instappt 0.0.2
File Size Uploaded Provenance Actions
instappt-0.0.2.tar.gz 20.8 MB Without provenance Details for instappt-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for instappt 0.0.2
File Interpreter ABI Platform Actions
instappt-0.0.2-py3-none-any.whl Python 3 none any Details for instappt-0.0.2-py3-none-any.whl

Total release size: 20.9 MB

Release files / instappt-0.0.2.tar.gz

Download URL instappt-0.0.2.tar.gz
Size 20.8 MB
Tags Source
SHA-256 checksum
How to use checksums
0c7f34df47609347bb36897c97d02cbe99e6d1d77e0e400b878c5468a34e691a
BLAKE2b-256 checksum
How to use checksums
ef06d31b6b556357244f0ed73e3a95c23daf857e407234bdec6708b3a9583f48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / instappt-0.0.2-py3-none-any.whl

Download URL instappt-0.0.2-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
618aa5555ab3ed2412f9b0b4432ed1b4da0f5e87e1a4707196572b967d03ef50
BLAKE2b-256 checksum
How to use checksums
4d907a4403bc13fce47d318f8b1dae09aa2f6efdffac2b6169656ed578902745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for instappt 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page