Spaces:
Runtime error
Runtime error
Commit
·
ffc804b
1
Parent(s):
80c773a
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ from openai import Completion as complete
|
|
9 |
|
10 |
mcq_prompt = "Generate French MCQs on the above text. Each MCQ must have four choices. Generate ten questions with answers:"
|
11 |
|
|
|
|
|
12 |
def generate_questions(context, mcq_prompt=mcq_prompt):
|
13 |
"""
|
14 |
Generate questions by calling davinci-003.
|
|
|
9 |
|
10 |
mcq_prompt = "Generate French MCQs on the above text. Each MCQ must have four choices. Generate ten questions with answers:"
|
11 |
|
12 |
+
api_key = os.environ[openai_api_key]
|
13 |
+
|
14 |
def generate_questions(context, mcq_prompt=mcq_prompt):
|
15 |
"""
|
16 |
Generate questions by calling davinci-003.
|