Spaces:
Build error
Build error
Commit
·
08430ae
1
Parent(s):
b88bca6
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def generate_pptx(lesson_topic):
|
|
19 |
"...\n"
|
20 |
"If an image is relevant, include: 'Image: short_description_of_image'\n"
|
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 |
response = openai.ChatCompletion.create(
|
@@ -37,7 +37,7 @@ def generate_pptx(lesson_topic):
|
|
37 |
n=1,
|
38 |
stop=None,
|
39 |
temperature=0.7,
|
40 |
-
|
41 |
)
|
42 |
|
43 |
output = response.choices[0]['message']['content']
|
|
|
19 |
"...\n"
|
20 |
"If an image is relevant, include: 'Image: short_description_of_image'\n"
|
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 |
response = openai.ChatCompletion.create(
|
|
|
37 |
n=1,
|
38 |
stop=None,
|
39 |
temperature=0.7,
|
40 |
+
top_p=0.8,
|
41 |
)
|
42 |
|
43 |
output = response.choices[0]['message']['content']
|