Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI PowerPoint Slide Editor

This is a Flask-based web application that allows users to upload a PowerPoint slide, give AI-powered edit instructions via text or voice, and download the edited slide. It uses OpenAI's GPT models along with python-pptx to automate slide editing.

Installation & Setup

Option 1: Git Bash (Windows)

Remove old virtual environment

 rm -rf venv

Create new virtual environment

python -m venv venv

Activate virtual environment

source venv/Scripts/activate

Upgrade pip

python -m pip install --upgrade pip

Install required packages

pip install flask python-pptx openai pillow werkzeug python-dotenv

Option 2: PowerShell (Windows)

Remove old virtual environment

Remove-Item -Recurse -Force .\venv

Create new virtual environment

python -m venv venv

Set permissions (first-time only)

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

Activate virtual environment

.\venv\Scripts\Activate.ps1

Upgrade pip

python -m pip install --upgrade pip

Install required packages

pip install flask python-pptx openai pillow werkzeug python-dotenv

🚀 Run the Project

python main.py

The app will run at:

http://localhost:5000

🔐 Environment Setup

Create a .env file in your root directory with the following:

OPENAI_API_KEY=your_openai_key_here
SESSION_SECRET=any_random_string

🧪 Features

  1. Upload a .pptx file (single slide)

  2. Preview existing slide content

  3. Give edit instructions via text or voice

  4. GPT-4 Turbo handles slide text editing

  5. Download the updated .pptx file

🎯 Tech Stack

  1. Backend: Flask

  2. Frontend: HTML, CSS, JavaScript

  3. AI Models: OpenAI GPT-4 Turbo

  4. Presentation Editing: python-pptx

📁 Folder Structure

/your-project-folder
│
├── main.py
├── app.py
├── .env
├── /uploads
├── /temp
├── /static
│   ├── css/style.css
│   └── js/app.js
├── /templates
│   └── index.html
└── README.md

demo

About

AI-powered PowerPoint editing tool built with Flask, python-pptx, OpenAI GPT and Whisper for natural-language and voice-based slide editing. Suggested topics: python, flask, openai, python-pptx, powerpoint, ai, whisper, automation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages