Spaces:
Build error
Build error
Commit
·
954adda
1
Parent(s):
37a1ea2
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ openai.api_key = os.environ["OPENAI_API_KEY"]
|
|
6 |
|
7 |
def generate_pptx(lesson_topic):
|
8 |
prompt = (
|
9 |
-
"Create PowerPoint slides for a lesson plan. The slides should be visually engaging, include concise headings and bullet points, and have relevant images or icons when necessary. Limit each slide to a maximum of
|
10 |
"\n\nFor the first slide, include the lesson title and relevant sub-points. Also, include a closing slide with takeaways from the lesson. Choose a PowerPoint theme from these options: dark, light, corporate, or playful, depending on the lesson's context."
|
11 |
"\n\nThe output should be suitable for use with the python-pptx library to create a PowerPoint presentation."
|
12 |
"\n\nLesson Plan:\n{lesson_topic}"
|
|
|
6 |
|
7 |
def generate_pptx(lesson_topic):
|
8 |
prompt = (
|
9 |
+
"Create PowerPoint slides for a lesson plan. The slides should be visually engaging, include concise headings and bullet points, and have relevant images or icons when necessary. Limit each slide to a maximum of 4 sub-points and a single image or icon when relevant. Divide the same heading into multiple slides if required to make the points more clear."
|
10 |
"\n\nFor the first slide, include the lesson title and relevant sub-points. Also, include a closing slide with takeaways from the lesson. Choose a PowerPoint theme from these options: dark, light, corporate, or playful, depending on the lesson's context."
|
11 |
"\n\nThe output should be suitable for use with the python-pptx library to create a PowerPoint presentation."
|
12 |
"\n\nLesson Plan:\n{lesson_topic}"
|