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.
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
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
python main.py
OPENAI_API_KEY=your_openai_key_here SESSION_SECRET=any_random_string
-
Upload a .pptx file (single slide)
-
Preview existing slide content
-
Give edit instructions via text or voice
-
GPT-4 Turbo handles slide text editing
-
Download the updated .pptx file
-
Backend: Flask
-
Frontend: HTML, CSS, JavaScript
-
AI Models: OpenAI GPT-4 Turbo
-
Presentation Editing: python-pptx
/your-project-folder │ ├── main.py ├── app.py ├── .env ├── /uploads ├── /temp ├── /static │ ├── css/style.css │ └── js/app.js ├── /templates │ └── index.html └── README.md
