GithubHelp home page GithubHelp logo

weiplanet / powerpointer-for-local-llms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cybertimon/powerpointer-for-local-llms

0.0 1.0 0.0 3.93 MB

Local Powerpointer - A beautiful powerpoint generator which uses the power of local running large language models to generate the powerpoint slides.

License: Apache License 2.0

Python 100.00%

powerpointer-for-local-llms's Introduction

PowerPoint generator using python-pptx and local large language models.

This is a PowerPoint generator that uses python-pptx and local llm's using the oobabooga text generation webui api to generate beautiful and informative presentations. Powerpointer doesn't use MARP. It directly creates the powerpoints so you can easily make changes to them or finish it within powerpoint. It also makes placeholders for images. You can even select between 7 designs to make the powerpoints more beautiful.

This is a port from my powerpointer which uses the gpt 3.5 openai api: Powerpointer The goal was to have this running completely local with no costs using for example a LLaMA based model. You can support this by giving this repo a star!

I optimized the prompts to work with the vicuna and alpaca like models. You can select the model type in the powerpointer.py file or can create a new prompt format in the pormpts.py file.

How it works:

  • It asks the user about the informations of the powerpoint
  • Then it generates the text for the powerpoint using some "hacky" prompts and the text generation webui api
  • The python-pptx library converts the generated text using my powerpoint format into a PowerPoint presentation

How to use this:

To make this work, clone the repository and install the following packages:

pip install python-pptx regex collection

After this, start your oobabooga text generation webui instance with an instruct finetuned model and the api extension (--api). 13B models and upwards work the best but you sometimes also receive good output with 7B models.

If you run oobabooga on a remote machine or not on a different port/ip, you have to open powerpointer.py and change the HOST or URL variable. When you are there, also make sure that the model_type for the prompt format is set correctly. (Vicuna or Alpaca)

Finally start the powerpoint generator by running:

python3 powerpointer.py 

Known issues:

Because of the limitation of "small and sometimes dumb" local models:

  • the generator easily hallucinates things
  • the generator sometimes ignores the selected slide count
  • the generator sometimes forgets to include the additional info

Please report any issues and feel free to make a pull request to fix my code I wrote at night.

Made by CyberTimon ([email protected])

Demo screenshots:

Here are some screenshots from the local generated powerpoints:

alt text alt text alt text

powerpointer-for-local-llms's People

Contributors

cybertimon avatar

Watchers

 avatar

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.