AndrewRWilliams commited on
Commit
06b74c7
·
1 Parent(s): 99e5fa0

move mcq_prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,6 +7,8 @@ import sys
7
  import openai
8
  from openai import Completion as complete
9
 
 
 
10
  def generate_questions(context, mcq_prompt=mcq_prompt):
11
  """
12
  Generate questions by calling davinci-003.
@@ -34,8 +36,6 @@ with gr.Blocks() as demo:
34
 
35
  qa_pairs = gr.Textbox(placeholder="Les questions apparaîtront ici.")
36
 
37
- mcq_prompt = "Generate French MCQs on the above text. Each MCQ must have four choices. Generate ten questions with answers:"
38
-
39
  #todo: test generating with just one phrase for one MCQ with smaller models
40
 
41
  quiz_button = gr.Button("Générer dix questions.")
 
7
  import openai
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.
 
36
 
37
  qa_pairs = gr.Textbox(placeholder="Les questions apparaîtront ici.")
38
 
 
 
39
  #todo: test generating with just one phrase for one MCQ with smaller models
40
 
41
  quiz_button = gr.Button("Générer dix questions.")