Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,4 +13,12 @@ response=openai.chat.completions.create(
|
|
13 |
{'role':'user','content':input}
|
14 |
]
|
15 |
)
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|