Chad commited on
Commit
f598bcc
·
1 Parent(s): f7357fa
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -65,10 +65,12 @@ def generate_quiz(subject, num_questions, chat_history, language_state):
65
  prompt = f"Generate {num_questions} multiple-choice history questions about {subject}. "
66
  prompt += "For each question, provide the question text, four options labeled A, B, C, and D, "
67
  prompt += "and at the end of all questions, list the correct answers in the format: 'Correct Answers: X, Y, Z, ...'."
 
68
  else:
69
  prompt = f"Générez {num_questions} questions à choix multiples sur l'histoire de {subject}. "
70
  prompt += "Pour chaque question, fournissez l'énoncé de la question, quatre options étiquetées A, B, C et D, "
71
  prompt += "et à la fin de toutes les questions, listez les bonnes réponses au format : 'Réponses correctes : X, Y, Z, ...'."
 
72
 
73
  response = client.chat.completions.create(
74
  model="llama3-70b-8192",
 
65
  prompt = f"Generate {num_questions} multiple-choice history questions about {subject}. "
66
  prompt += "For each question, provide the question text, four options labeled A, B, C, and D, "
67
  prompt += "and at the end of all questions, list the correct answers in the format: 'Correct Answers: X, Y, Z, ...'."
68
+ prompt += "Try to have one quarter of the correct answers be a, one quarter be b, one quarted be c and one quarted be d"
69
  else:
70
  prompt = f"Générez {num_questions} questions à choix multiples sur l'histoire de {subject}. "
71
  prompt += "Pour chaque question, fournissez l'énoncé de la question, quatre options étiquetées A, B, C et D, "
72
  prompt += "et à la fin de toutes les questions, listez les bonnes réponses au format : 'Réponses correctes : X, Y, Z, ...'."
73
+ prompt += "Essaye d'avoir un quart des bonnes réponses dans la position a, un quart dans la position b, un quart dans la position c et un quart dans la position d"
74
 
75
  response = client.chat.completions.create(
76
  model="llama3-70b-8192",