• Stars
    star
    701
  • Rank 61,849 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 1 year ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use ChatGPT (or other backends) to generate PPT automatically, all in one single file.

chat-gpt-ppt

Use ChatGPT to generate PPT automatically, all in one single file.

Showcase

  1. Some topics for presentation named topic.txt:
what's OpenAI?
how OpenAI works?
what is the future of OpenAI?
  1. Save your openai token to token.txt.
  2. Generate a ppt in seconds:
./cgp

And you get one:

With multi languages support:

Or different render engine:

Usage

You can download prebuild binaries from release page.

  1. Download a executable binary
  2. Add your topics to topic.txt
  3. Add your token (official openai api key, with no extra white space, no empty line) to token.txt
  4. run ./cgp

Everything done. You can get some help about command line arguments with cgp --help.

$ ./cgp_macos --help
Usage of ./cgp_macos:
  -client string
        gpt client type (default "GPT35")
  -output string
        out path (default "./output.html")
  -renderer string
        renderer type (default "REMARK")
  -rendererBin string
        binary file for renderer
  -token string
        token file path (default "./token.txt")
  -topic string
        topic file path (default "./topic.txt")

Interactive mode

-i flag allows you checking and correcting generated contents one by one.

@williamfzc ➜ /workspaces/chat-gpt-ppt (main) $ ./cgp -i
start preparing ...
start generating ...
2023/03/18 08:17:23 topic what's OpenAI? done 
Here is your response, type any key to continue, type 'n' to edit 
# what's OpenAI?



- OpenAI is an artificial intelligence research lab.
- It was founded by a group of well-known tech industry figures in 2015 as a non-profit organization.
- OpenAI's mission is to ensure that AGI (Artificial General Intelligence) benefits all of humanity.
- Their research covers many areas of AI, such as reinforcement learning, natural language processing, computer vision, and robotics.
- OpenAI also develops and releases several powerful AI-based tools, including GPT-3, which has revolutionized natural language processing.

>>>  

Contribution

Thanks for your interest. This project is really simple to hack.

This project consists of two pluggable parts:

  • Client: Send topics to GPT and get their responses
  • Renderer: Build slides from these pairs

If you want to make some changes:

  • git clone
  • change code
  • run make to build a binary file (Go installation required)
  • check
  • push to repo and send a PR

Feel free to send us PR/issues.

Changelog

[2023-03-02] Rewrite with golang. All in one file.

[2023-01-13] #2 OpenAI's services are not available in my country.

[2022-12-06] Currently, ChatGPT has no official API. I am waiting for it to make this repo a real production.

License

MIT

More Repositories

1

stagesepx

detect stages in video automatically
Python
407
star
2

pyminitouch

python wrapper of minitouch, for better experience
Python
103
star
3

findit

find target icon on your picture, and get its position
Python
99
star
4

BaseDesktopApp

electron + vue + element = cool desktop app
JavaScript
83
star
5

fitch

[TOY PROJECT] Android UI automation based on opencv 🚀 fitch = fi(nd) & t(ou)ch
Python
63
star
6

wx_jump

[DEPRECATED] 一个规范且适合新手阅读的weixin跳一跳辅助
Python
53
star
7

work_with_stagesepx

about how to use stagesepx in production
Python
47
star
8

randunit

Bring unittest to your Android/JVM applications with tiny effort.
Kotlin
36
star
9

stagesep2

[TOO SLOW NOW] Analyse, and convert video into useful data.
Python
22
star
10

diffctx

A GitHub action for automatically evaluating the function level impacts of Pull Requests.
Python
21
star
11

usb2container

binding specific USB devices to container
Python
19
star
12

pyatool

python android toolkit 🔨
Python
19
star
13

sepmachine

stagesepx workflow in production
Python
19
star
14

fastcap

fast screen cap on android, with minicap.
Python
16
star
15

whenconnect

when your android connected, do sth :)
Python
14
star
16

srctx

A library for extracting and analyzing definition/reference graphs from your codebase. Powered by tree-sitter and LSIF/SCIP.
Go
13
star
17

socket2adb

60 lines to describe how to write an adb client
Python
11
star
18

linkediff

linked graph for diff
Python
10
star
19

minadb

min adb client implemented with subprocess, nothing special but useful and stable.
Python
10
star
20

stagesep

detect stages in video
Python
7
star
21

ConnectionTracer

when connected devices changed, do sth :)
Python
7
star
22

ToolCover

easily run your terminal app in html
Python
4
star
23

pyudevmonitor

simple wrapper of udevadm monitor
Python
3
star
24

lockadb

lockable android debug bridge, for managing devices precisely and safely
Python
2
star
25

devcube

last step to use docker in local development
Python
2
star
26

sidebike

一个轻量无中间件的、基于发布订阅模型的、开箱可用的 agent-server 库。 用于快速构建简单的任务分发流程。
Go
2
star
27

findtext

OCR, based on tesseract (tesserocr), with accuracy improvement
Python
2
star
28

findit-client

client for findit
Python
2
star
29

pycallback

[TOY PROJECT] simple callback wrapper for python
Python
1
star
30

sibyl

static code analyzer for multi languages based on antlr4
Java
1
star
31

stagesep2-sample

sample project for stagesep2
Python
1
star
32

build_sdk_with_go

sample project to describe how to build an android SDK with golang.
1
star
33

simhand2

UI operator like a real hand 👆
Java
1
star
34

grabel

Python
1
star