devuxious/PowerPoint-AI
8
1---2title: SlideDeck AI3emoji: 🏢4colorFrom: yellow5colorTo: green6sdk: streamlit7sdk_version: 1.32.28app_file: app.py9pinned: false10license: mit11---12 13# SlideDeck AI14 15We spend a lot of time on creating the slides and organizing our thoughts for any presentation. 16With SlideDeck AI, co-create slide decks on any topic with Generative Artificial Intelligence.17Describe your topic and let SlideDeck AI generate a PowerPoint slide deck for you—it's as simple as that!18 19SlideDeck AI is powered by [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407).20Originally, it was built using the Llama 2 API provided by Clarifai.21 22*Update (v4.0)*: Legacy SlideDeck AI allowed one-shot generation of a slide deck based on the inputs. 23In contrast, SlideDeck AI *Reloaded* enables an iterative workflow with a conversational interface,24where you can create and improve the presentation.25 26 27# Process28 29SlideDeck AI works in the following way:30 311. Given a topic description, it uses Mistral Nemo Instruct to generate the *initial* content of the slides. 32The output is generated as structured JSON data based on a pre-defined schema.332. Next, it uses the keywords from the JSON output to search and download a few images with a certain probability.343. Subsequently, it uses the `python-pptx` library to generate the slides, 35based on the JSON data from the previous step. 36A user can choose from a set of three pre-defined presentation templates.374. At this stage onward, a user can provide additional instructions to *refine* the content.38For example, one can ask to add another slide or modify an existing slide.39A history of instructions is maintained.405. Every time SlideDeck AI generates a PowerPoint presentation, a download button is provided.41Clicking on the button will download the file.42 43 44# Icons45 46SlideDeck AI uses a subset of icons from [bootstrap-icons-1.11.3](https://github.com/twbs/icons)47 (MIT license) in the slides. A few icons from [SVG Repo](https://www.svgrepo.com/)48(CC0, MIT, and Apache licenses) are also used. 49 50 51# Known Issues52 53- **Connection timeout**: Requests sent to the Hugging Face Inference endpoint might time out. If it still does not work, wait for a while and try again.54 55The following is not an issue but might appear as a strange behavior:56- **Cannot paste text in the input box**: If the length of the copied text is greater than the maximum57number of allowed characters in the textbox, pasting would not work.58 59 60# Local Development61 62SlideDeck AI uses [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407) 63via the Hugging Face Inference API.64To run this project by yourself, you need to provide the `HUGGINGFACEHUB_API_TOKEN` API key,65for example, in a `.env` file. For image search, the `PEXEL_API_KEY` should be added. 66Visit the respective websites to obtain the keys.67 68 69# Live Demo70 71- [SlideDeck AI](https://huggingface.co/spaces/barunsaha/slide-deck-ai) on Hugging Face Spaces72- [Demo video](https://youtu.be/QvAKzNKtk9k) of the chat interface on YouTube73 74 75# Award76 77SlideDeck AI has won the 3rd Place in the [Llama 2 Hackathon with Clarifai](https://lablab.ai/event/llama-2-hackathon-with-clarifai) in 2023.