Chad commited on
Commit
2c7e2de
·
1 Parent(s): ab92035

45672uwwewewewedwdwd

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def generate_quiz(subject, num_questions):
48
  quiz_questions = []
49
  try:
50
  for i in range(num_questions):
51
- prompt = f"Generate a multiple-choice history question about {subject}. Include four options and specify the correct answer."
52
  response = client.chat.completions.create(
53
  model="llama3-70b-8192",
54
  messages=[{"role": "user", "content": prompt}],
 
48
  quiz_questions = []
49
  try:
50
  for i in range(num_questions):
51
+ prompt = f"Generate a multiple-choice history question about {subject}. Provide the question, four options labeled A, B, C, and D, and at the bottom of the outputted message list all the correct answers in the format: 'Question X Correct Answer: Y...'."
52
  response = client.chat.completions.create(
53
  model="llama3-70b-8192",
54
  messages=[{"role": "user", "content": prompt}],