swcrazyfan commited on
Commit
b2bf675
1 Parent(s): 8c04b69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,7 +28,7 @@ def generate_pptx(lesson_topic):
28
  {
29
  "role": "system",
30
  "content": (
31
- "You are a helpful assistant capable of creating clear and concise PowerPoint slide outlines based on a given lesson plan. Ensure that the slides include concise headings, bullet points, relevant images or icons, and 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."
32
  ),
33
  },
34
  {"role": "user", "content": prompt},
@@ -36,8 +36,8 @@ def generate_pptx(lesson_topic):
36
  max_tokens=1000,
37
  n=1,
38
  stop=None,
39
- temperature=0.5,
40
- top_p=0.9,
41
  )
42
 
43
  output = response.choices[0]['message']['content']
 
28
  {
29
  "role": "system",
30
  "content": (
31
+ "You are a helpful assistant capable of creating clear and concise PowerPoint slide outlines used by teachers during their lessons based on a given lesson plan."
32
  ),
33
  },
34
  {"role": "user", "content": prompt},
 
36
  max_tokens=1000,
37
  n=1,
38
  stop=None,
39
+ temperature=0.8,
40
+ # top_p=0.9,
41
  )
42
 
43
  output = response.choices[0]['message']['content']