Spaces:
Build error
Build error
Update project description
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
|
@@ -21,19 +21,28 @@ Describe your topic and let SlideDeck AI generate a PowerPoint slide deck for yo
|
|
| 21 |
|
| 22 |
SlideDeck AI works in the following way:
|
| 23 |
|
| 24 |
-
1. Given a topic description, it uses Llama 2 to generate the outline/contents of the slides.
|
| 25 |
-
|
| 26 |
-
|
| 27 |
based on the JSON data from the previous step.
|
| 28 |
Here, a user can choose from a set of three pre-defined presentation templates.
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
|
| 33 |
# Local Development
|
| 34 |
|
| 35 |
-
SlideDeck AI uses the Clarifai API of LangChain to
|
| 36 |
It also sends a Web request to Clarifai for the final step.
|
| 37 |
To run this project by yourself, you need to provide the `CLARIFAI_PAT` and `METAPHOR_API_KEY` API keys,
|
| 38 |
for example, in a `.env` file.
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SlideDeck AI
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: green
|
|
|
|
| 21 |
|
| 22 |
SlideDeck AI works in the following way:
|
| 23 |
|
| 24 |
+
1. Given a topic description, it uses Llama 2 to generate the outline/contents of the slides.
|
| 25 |
+
The output is generated as structured JSON data based on a pre-defined schema.
|
| 26 |
+
2. Subsequently, it uses the `python-pptx` library to generate the slides,
|
| 27 |
based on the JSON data from the previous step.
|
| 28 |
Here, a user can choose from a set of three pre-defined presentation templates.
|
| 29 |
+
3. In addition, it uses Metaphor to fetch Web pages related to the topic.
|
| 30 |
+
4. Finally, it uses Stable Diffusion 2 to generate an image, based on the title and each slide heading.
|
| 31 |
|
| 32 |
|
| 33 |
# Local Development
|
| 34 |
|
| 35 |
+
SlideDeck AI uses the Clarifai API of LangChain to interact with Llama 2.
|
| 36 |
It also sends a Web request to Clarifai for the final step.
|
| 37 |
To run this project by yourself, you need to provide the `CLARIFAI_PAT` and `METAPHOR_API_KEY` API keys,
|
| 38 |
for example, in a `.env` file.
|
| 39 |
|
| 40 |
+
|
| 41 |
+
# Live Demo
|
| 42 |
+
|
| 43 |
+
[SlideDeck AI](https://huggingface.co/spaces/barunsaha/slide-deck-ai)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
# Award
|
| 47 |
+
|
| 48 |
+
SlideDeck AI has won the 3rd Place in the [Llama 2 Hackathon with Clarifai](https://lablab.ai/event/llama-2-hackathon-with-clarifai).
|