Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def generate_mcqs_on_topic(text, topic, num_mcqs=5):
|
|
36 |
|
37 |
return mcqs
|
38 |
|
39 |
-
def generate_question_with_chatgpt():
|
40 |
headers = {
|
41 |
"Content-Type": "application/json",
|
42 |
"Authorization": f"Bearer {OPENAI_API_KEY}",
|
|
|
36 |
|
37 |
return mcqs
|
38 |
|
39 |
+
def generate_question_with_chatgpt(context):
|
40 |
headers = {
|
41 |
"Content-Type": "application/json",
|
42 |
"Authorization": f"Bearer {OPENAI_API_KEY}",
|