swcrazyfan commited on
Commit
4054c88
1 Parent(s): f55edda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -9,8 +9,7 @@ def generate_pptx(lesson_topic):
9
  "I need you to create a set of engaging PowerPoint slides that will help teachers summarize and emphasize key points for their students during a lesson. The slides should be visually engaging and include concise headings, bullet points, and relevant images or icons. Make sure to provide any necessary information, such as activity steps or reflection questions. Limit each slide to a maximum of 3-4 sub-points and a single image or icon when relevant. If necessary, divide the same heading into multiple slides to make the points more clear."
10
  "\n\nFor the first slide, include the lesson title and any relevant sub-points such as. 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.\n\n"
12
- "Lesson Plan:\n\"
13
- f"{lesson_topic}\n\n"
14
  "For each slide, provide this information:\n\n"
15
  "#. Slide (slide_title):\n"
16
  "Heading: concise_heading\n"
@@ -21,7 +20,6 @@ def generate_pptx(lesson_topic):
21
  "If an icon is relevant, include: 'Icon: font_awesome_icon_code the python library will understand without anything else'\n\n"
22
  "When creating the slides, remember to use clear and concise language, write the slides for the students to understand, and use appropriate images or icons, and choose a suitable theme for the PowerPoint presentation."
23
  )
24
- )
25
 
26
  response = openai.ChatCompletion.create(
27
  model="gpt-3.5-turbo",
 
9
  "I need you to create a set of engaging PowerPoint slides that will help teachers summarize and emphasize key points for their students during a lesson. The slides should be visually engaging and include concise headings, bullet points, and relevant images or icons. Make sure to provide any necessary information, such as activity steps or reflection questions. Limit each slide to a maximum of 3-4 sub-points and a single image or icon when relevant. If necessary, divide the same heading into multiple slides to make the points more clear."
10
  "\n\nFor the first slide, include the lesson title and any relevant sub-points such as. 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.\n\n"
12
+ "Lesson Plan: {lesson_topic}\n\n"
 
13
  "For each slide, provide this information:\n\n"
14
  "#. Slide (slide_title):\n"
15
  "Heading: concise_heading\n"
 
20
  "If an icon is relevant, include: 'Icon: font_awesome_icon_code the python library will understand without anything else'\n\n"
21
  "When creating the slides, remember to use clear and concise language, write the slides for the students to understand, and use appropriate images or icons, and choose a suitable theme for the PowerPoint presentation."
22
  )
 
23
 
24
  response = openai.ChatCompletion.create(
25
  model="gpt-3.5-turbo",