Spaces:
Build error
Build error
Commit
·
b2bf675
1
Parent(s):
8c04b69
Update app.py
Browse files
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
|
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.
|
40 |
-
|
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']
|