GithubHelp home page GithubHelp logo

jidechao / ai-pptx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metaimagine/ai-pptx

0.0 0.0 0.0 3.47 MB

๐Ÿ˜† Generate PPT by LLM follow your template. ๐Ÿ“ข Not only use llm to generate ppt, but also according to your favorite ppt template. Just you need to simply change the template parameters.

License: MIT License

Python 85.24% HTML 14.76%

ai-pptx's Introduction

ai-pptx

๐Ÿ˜† Generate PPT by LLM follow your template.

๐Ÿ“ข Not only use llm to generate ppt, but also according to your favorite ppt template. Just you need to simply change the template parameters.

ShowCase

Template Generated Slide

Installation

python >= 3.10

  1. Clone the .env.example and update your own llm api key llm -> api_key
$ cp .env.example .env
  1. Install the dependencies
$ pip install -r requirements.txt

Run in Gradio

$ python run.py

How to use personal pptx template ?

Because there is no relatively stable extraction parameter scheme, the use of personal ppt templates needs to do their own parameterization and semantization.

Parameterization

For each text box, you need to use the {param} to fill it back.

For example:

Semantization

And above parameter name can be customized, but because it needs to be understood by the LLM, you must include semantics. If need the Number to sort, you need to fill [sth]_[no] as the parameter name.

For example:

If the textbox is filled by title info, you should be fill it with title.

If the textbox is filled by the content of the first paragraph, you should be fill it with content_1.

If the textbox is filled by the content of the second paragraph, you should be fill it with content_2.

Features

  • โ˜‘ Generate PPT by LLM
  • โ˜‘ New PPT follow your template
  • โ˜‘ Support gradio app
  • โ˜ Generate all content by Agent

License

Licensed under the MIT.

Contact

See the homepage ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.