Skip to content

causemx/gpt2ppt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Auto generating pptx from gpt3+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages