Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.19 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.19 KB

gpt2ppt

Auto generating pptx from json format file(include prompt) using gpt3.5-turbo model.

Requirement

  1. Python version > 3.6
  2. python-pptx
  3. openai

Installation

First install requirment packages:

pip3 install -r requirements.txt

Setup the API_KEY

Run the following command in your terminal, replacing yourkey with your API key.

echo "export OPENAI_API_KEY='yourkey'" >> ~/.bashrc

Running the app

python app.py

Generator

Usage

positional arguments:
    options: [input_file]   path/to/input_json_file.
    
optional arguments:
    -o, --outputFile        destination for output pptx.
    -m, --maximum           maximum words generated by LLM.

Annotations

For inserting slide or content conviently, annotation can be used in .json file.

  • @title Add new slide and set title for page.
  • @prompt insert prompt into content, format: Topic:@prompt

Samples

Raw json file:

Generated pptx: