Raghu-Shikari commited on
Commit
276b1f5
·
verified ·
1 Parent(s): f863bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- engine="davinci-codex", # 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,
 
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,