Nikhitha2310 commited on
Commit
b4bb33e
·
verified ·
1 Parent(s): d1bca64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -13,4 +13,12 @@ response=openai.chat.completions.create(
13
  {'role':'user','content':input}
14
  ]
15
  )
16
- st.write(response.choices[0].message.content)
 
 
 
 
 
 
 
 
 
13
  {'role':'user','content':input}
14
  ]
15
  )
16
+ response2=openai.chat.completions.create(
17
+ model="gpt-3.5-turbo",
18
+ messages=[
19
+ {"role": "assistant", "content": response.choices[0].message.content},
20
+ {'role':'user','content':'Give me 5 mcq questions based on the above content'}
21
+ ]
22
+ )
23
+
24
+ st.write(response2.choices[0].message.content)