swcrazyfan commited on
Commit
567db67
·
1 Parent(s): 2ea5ec0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def generate_pptx(lesson_topic):
42
  top_p=0.9,
43
  )
44
 
45
- output = response.choices[0].text.strip()
46
 
47
  return output
48
 
 
42
  top_p=0.9,
43
  )
44
 
45
+ output = response.choices[0]['message']['content']
46
 
47
  return output
48