Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ openai.api_key = "sk-proj-uHasdgbriPPlFMm99ZtJT3BlbkFJOl231YfdxCSNmQjVEpMX"
|
|
7 |
# Function to generate MCQs using OpenAI
|
8 |
def generate_mcqs(content, num_questions):
|
9 |
response = openai.Completion.create(
|
10 |
-
|
11 |
prompt=f"Generate {num_questions} multiple-choice questions from the following content:\n\n{content}\n\n",
|
12 |
max_tokens=500,
|
13 |
n=num_questions,
|
|
|
7 |
# Function to generate MCQs using OpenAI
|
8 |
def generate_mcqs(content, num_questions):
|
9 |
response = openai.Completion.create(
|
10 |
+
# You can use a different engine if needed
|
11 |
prompt=f"Generate {num_questions} multiple-choice questions from the following content:\n\n{content}\n\n",
|
12 |
max_tokens=500,
|
13 |
n=num_questions,
|