AndrewRWilliams commited on
Commit
718ffdc
·
1 Parent(s): 7c35428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -33,17 +33,18 @@ def generate_questions(context, credentials, mcq_prompt=mcq_prompt):
33
  # return selected_text, selected_text + feedback
34
  with gr.Blocks() as demo:
35
 
36
- with gr.Row():
 
 
37
 
38
- gr.Markdown("Génération de quizz!")
39
 
40
- context = gr.Textbox(placeholder="insérez le texte ici.")
41
 
42
- qa_pairs = gr.Textbox(placeholder="Les questions apparaîtront ici.")
43
 
44
  #todo: test generating with just one phrase for one MCQ with smaller models
45
 
46
- credentials = gr.Textbox("Code d'accès.")
47
  quiz_button = gr.Button("Générer dix questions.")
48
 
49
  if credentials == access_code:
 
33
  # return selected_text, selected_text + feedback
34
  with gr.Blocks() as demo:
35
 
36
+ gr.Markdown("Génération de quizz!")
37
+
38
+ credentials = gr.Textbox("Code d'accès.")
39
 
40
+ with gr.Row():
41
 
42
+ context = gr.Textbox(placeholder="insérez le texte ici.", lines=10)
43
 
44
+ qa_pairs = gr.Textbox(placeholder="Les questions apparaîtront ici.", lines=10)
45
 
46
  #todo: test generating with just one phrase for one MCQ with smaller models
47
 
 
48
  quiz_button = gr.Button("Générer dix questions.")
49
 
50
  if credentials == access_code: