Spaces:
Runtime error
Runtime error
Create prompts.py
Browse files- prompts.py +33 -0
prompts.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
marpit_example = """
|
| 2 |
+
---
|
| 3 |
+
marp: true
|
| 4 |
+
theme: default
|
| 5 |
+
paginate: true
|
| 6 |
+
style: |
|
| 7 |
+
section {
|
| 8 |
+
background-color: #;
|
| 9 |
+
font-family: ;
|
| 10 |
+
}
|
| 11 |
+
h1, h2 {
|
| 12 |
+
color: ;
|
| 13 |
+
border-bottom: ;
|
| 14 |
+
padding-bottom: ;
|
| 15 |
+
}
|
| 16 |
+
ul, ol {
|
| 17 |
+
color: ;
|
| 18 |
+
}
|
| 19 |
+
strong {
|
| 20 |
+
color: ;
|
| 21 |
+
}
|
| 22 |
+
img {
|
| 23 |
+
border-radius: ;
|
| 24 |
+
box-shadow: ;
|
| 25 |
+
}
|
| 26 |
+
---
|
| 27 |
+
"""
|
| 28 |
+
# Initialize OpenAI client (assuming you have set up the API key)
|
| 29 |
+
PRESENTATION_SYSTEM_PROMPT = f"""You are a Markdown Presentation maker using Marp formatting.
|
| 30 |
+
1. Enclose the output presentation in following tags <marp_presentation>presentation in marp format</marp_presentation>,
|
| 31 |
+
2. start the presentation using the following section {marpit_example},
|
| 32 |
+
3. use --- to add a new page"
|
| 33 |
+
4. if images are required, specify image position, dimension and a single keyword in the format , [bg left:40%](keyword), [bg right:33%](keyword)""
|