Spaces:
Running
Running
Merge pull request #18 from barun-saha/visual
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ Describe your topic and let SlideDeck AI generate a PowerPoint slide deck for yo
|
|
| 19 |
SlideDeck AI is powered by [Mistral 7B Instruct](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2).
|
| 20 |
Originally, it was built using the Llama 2 API provided by Clarifai.
|
| 21 |
|
| 22 |
-
*Update*: Legacy SlideDeck AI allowed one-shot generation of a slide deck based on the inputs.
|
| 23 |
In contrast, SlideDeck AI *Reloaded* enables an iterative workflow with a conversational interface,
|
| 24 |
where you can create and improve the presentation.
|
| 25 |
|
|
@@ -33,7 +33,7 @@ The output is generated as structured JSON data based on a pre-defined schema.
|
|
| 33 |
2. Subsequently, it uses the `python-pptx` library to generate the slides,
|
| 34 |
based on the JSON data from the previous step.
|
| 35 |
A user can choose from a set of three pre-defined presentation templates.
|
| 36 |
-
3. At this stage onward, a user can provide additional instructions to refine the content.
|
| 37 |
For example, one can ask to add another slide or modify an existing slide.
|
| 38 |
A history of instructions is maintained.
|
| 39 |
4. Every time SlideDeck AI generates a PowerPoint presentation, a download button is provided.
|
|
@@ -42,9 +42,6 @@ Clicking on the button will download the file.
|
|
| 42 |
|
| 43 |
# Known Issues
|
| 44 |
|
| 45 |
-
- **Incorrect JSON**: Sometimes the JSON generated could be syntactically incorrect.
|
| 46 |
-
You can try asking SlideDeck AI to regenerate the content and fix the JSON syntax error.
|
| 47 |
-
This, however, is not guaranteed to work. The alternative is to reload the website and try again.
|
| 48 |
- **Connection timeout**: Requests sent to the Hugging Face Inference endpoint might time out.
|
| 49 |
A maximum of five retries are attempted. If it still does not work, wait for a while and try again.
|
| 50 |
|
|
|
|
| 19 |
SlideDeck AI is powered by [Mistral 7B Instruct](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2).
|
| 20 |
Originally, 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.
|
| 23 |
In contrast, SlideDeck AI *Reloaded* enables an iterative workflow with a conversational interface,
|
| 24 |
where you can create and improve the presentation.
|
| 25 |
|
|
|
|
| 33 |
2. Subsequently, it uses the `python-pptx` library to generate the slides,
|
| 34 |
based on the JSON data from the previous step.
|
| 35 |
A user can choose from a set of three pre-defined presentation templates.
|
| 36 |
+
3. At this stage onward, a user can provide additional instructions to *refine* the content.
|
| 37 |
For example, one can ask to add another slide or modify an existing slide.
|
| 38 |
A history of instructions is maintained.
|
| 39 |
4. Every time SlideDeck AI generates a PowerPoint presentation, a download button is provided.
|
|
|
|
| 42 |
|
| 43 |
# Known Issues
|
| 44 |
|
|
|
|
|
|
|
|
|
|
| 45 |
- **Connection timeout**: Requests sent to the Hugging Face Inference endpoint might time out.
|
| 46 |
A maximum of five retries are attempted. If it still does not work, wait for a while and try again.
|
| 47 |
|
langchain_templates/chat_prompts/initial_template_v3_two_cols.txt
CHANGED
|
@@ -1,9 +1,13 @@
|
|
| 1 |
You are a helpful, intelligent chatbot. Create the slides for a presentation on the given topic.
|
| 2 |
Include main headings for each slide, detailed bullet points for each slide.
|
| 3 |
Add relevant content to each slide.
|
| 4 |
-
The content of each slide should be
|
| 5 |
-
If relevant, add one or two
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
### Topic:
|
|
@@ -45,7 +49,7 @@ The output must be only a valid and syntactically correct JSON adhering to the f
|
|
| 45 |
"key_message": ""
|
| 46 |
}},
|
| 47 |
{{
|
| 48 |
-
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
|
| 49 |
"bullet_points": [
|
| 50 |
{{
|
| 51 |
"heading": "Heading of the left column",
|
|
@@ -70,14 +74,5 @@ The output must be only a valid and syntactically correct JSON adhering to the f
|
|
| 70 |
}}
|
| 71 |
|
| 72 |
|
| 73 |
-
### Some more hints on the slide content and JSON output format:
|
| 74 |
-
- For two or three important slides, generate the key message that those slides convey and assign
|
| 75 |
-
them to the `key_message` elements of JSON output.
|
| 76 |
-
- Identify if a slide describes a step-by-step/sequential process, then begin the bullet points
|
| 77 |
-
with a special marker >>. Limit this to max two or three slides.
|
| 78 |
-
- Add at least one slide with double column layout by generating appropriate content based on
|
| 79 |
-
the description in the above JSON schema.
|
| 80 |
-
|
| 81 |
-
|
| 82 |
### Output:
|
| 83 |
```json
|
|
|
|
| 1 |
You are a helpful, intelligent chatbot. Create the slides for a presentation on the given topic.
|
| 2 |
Include main headings for each slide, detailed bullet points for each slide.
|
| 3 |
Add relevant content to each slide.
|
| 4 |
+
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.
|
| 5 |
+
If relevant, add one or two EXAMPLES to illustrate the concept.
|
| 6 |
+
For two or three important slides, generate the key message that those slides convey.
|
| 7 |
+
Identify if a slide describes a step-by-step/sequential process, then begin the bullet points with a special marker >>. Limit this to max two or three slides.
|
| 8 |
+
Also, add at least one slide with a double column layout by generating appropriate content based on the description in the JSON schema provided below.
|
| 9 |
+
ALWAYS add a concluding slide at the end, containing a list of the key takeways and an optional call-to-action if relevant to the context.
|
| 10 |
+
Unless explicitly instructed, create 10 TO 12 SLIDES in total.
|
| 11 |
|
| 12 |
|
| 13 |
### Topic:
|
|
|
|
| 49 |
"key_message": ""
|
| 50 |
}},
|
| 51 |
{{
|
| 52 |
+
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of two related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
|
| 53 |
"bullet_points": [
|
| 54 |
{{
|
| 55 |
"heading": "Heading of the left column",
|
|
|
|
| 74 |
}}
|
| 75 |
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
### Output:
|
| 78 |
```json
|
langchain_templates/chat_prompts/refinement_template_v3_two_cols.txt
CHANGED
|
@@ -4,13 +4,13 @@ The previously generated content of the slide deck in JSON format is also provid
|
|
| 4 |
Follow the instructions to revise the content of the previously generated slides of the presentation on the given topic.
|
| 5 |
Include main headings for each slide, detailed bullet points for each slide.
|
| 6 |
Add relevant content to each slide.
|
| 7 |
-
The content of
|
| 8 |
-
If relevant, add one or two
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
|
| 15 |
|
| 16 |
### List of instructions:
|
|
@@ -56,7 +56,7 @@ The output must be only a valid and syntactically correct JSON adhering to the f
|
|
| 56 |
"key_message": ""
|
| 57 |
}},
|
| 58 |
{{
|
| 59 |
-
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
|
| 60 |
"bullet_points": [
|
| 61 |
{{
|
| 62 |
"heading": "Heading of the left column",
|
|
@@ -81,14 +81,5 @@ The output must be only a valid and syntactically correct JSON adhering to the f
|
|
| 81 |
}}
|
| 82 |
|
| 83 |
|
| 84 |
-
### Some more hints on the slide content and JSON output format:
|
| 85 |
-
- For two or three important slides, generate the key message that those slides convey and assign
|
| 86 |
-
them to the `key_message` elements of JSON output.
|
| 87 |
-
- Identify if a slide describes a step-by-step/sequential process, then begin the bullet points
|
| 88 |
-
with a special marker >>. Limit this to max two or three slides.
|
| 89 |
-
- Add at least one slide with double column layout by generating appropriate content based on
|
| 90 |
-
the description in the above JSON schema.
|
| 91 |
-
|
| 92 |
-
|
| 93 |
### Output:
|
| 94 |
```json
|
|
|
|
| 4 |
Follow the instructions to revise the content of the previously generated slides of the presentation on the given topic.
|
| 5 |
Include main headings for each slide, detailed bullet points for each slide.
|
| 6 |
Add relevant content to each slide.
|
| 7 |
+
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED.
|
| 8 |
+
If relevant, add one or two EXAMPLES to illustrate the concept.
|
| 9 |
+
For two or three important slides, generate the key message that those slides convey.
|
| 10 |
+
Identify if a slide describes a step-by-step/sequential process, then begin the bullet points with a special marker >>. Limit this to max two or three slides.
|
| 11 |
+
Also, add at least one slide with a double column layout by generating appropriate content based on the description in the JSON schema provided below.
|
| 12 |
+
ALWAYS add a concluding slide at the end, containing a list of the key takeways and an optional call-to-action if relevant to the context.
|
| 13 |
+
Unless explicitly instructed, create 10 TO 12 SLIDES in total.
|
| 14 |
|
| 15 |
|
| 16 |
### List of instructions:
|
|
|
|
| 56 |
"key_message": ""
|
| 57 |
}},
|
| 58 |
{{
|
| 59 |
+
"heading": "A slide with a double column layout (useful for side-by-side comparison/contrasting of two related concepts, e.g., pros & cons, advantages & risks, old approach vs. modern approach, and so on)",
|
| 60 |
"bullet_points": [
|
| 61 |
{{
|
| 62 |
"heading": "Heading of the left column",
|
|
|
|
| 81 |
}}
|
| 82 |
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
### Output:
|
| 85 |
```json
|