shukdevdatta123 commited on
Commit
4895944
Β·
verified Β·
1 Parent(s): 95e9fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -353,7 +353,8 @@ def generate_study_notes():
353
  @spaces.GPU
354
  def generate_quiz():
355
  """Generate quiz questions"""
356
- prompt = """Create a comprehensive quiz based on this document using HTML formatting. Do not include <html>, <head>, <body>, or code block markers. Start directly with the content.
 
357
 
358
  <h1>πŸ“ Quiz Questions</h1>
359
 
@@ -383,12 +384,20 @@ def generate_quiz():
383
  <h2>πŸ“š Answer Key</h2>
384
  <div class="answer-key">
385
  <h3>Multiple Choice Answers:</h3>
386
- <p>Provide all correct answers with explanations</p>
 
 
 
 
 
 
387
  </div>
388
 
389
  Create 5 multiple choice, 5 short answer, and 2 essay questions.
 
 
390
  """
391
- return generate_content(prompt, max_tokens=3000)
392
 
393
  @spaces.GPU
394
  def generate_flashcards():
 
353
  @spaces.GPU
354
  def generate_quiz():
355
  """Generate quiz questions"""
356
+ prompt = """
357
+ Create a comprehensive quiz based on this document using HTML formatting. Do not include <html>, <head>, <body>, or code block markers. Start directly with the content.
358
 
359
  <h1>πŸ“ Quiz Questions</h1>
360
 
 
384
  <h2>πŸ“š Answer Key</h2>
385
  <div class="answer-key">
386
  <h3>Multiple Choice Answers:</h3>
387
+ <p>For each MCQ, provide the correct option and a brief explanation.</p>
388
+
389
+ <h3>Short Answer Responses:</h3>
390
+ <p>For each short answer question, provide a concise model answer.</p>
391
+
392
+ <h3>Essay Question Guidelines:</h3>
393
+ <p>For each essay question, offer a structured outline or key points to include in the response.</p>
394
  </div>
395
 
396
  Create 5 multiple choice, 5 short answer, and 2 essay questions.
397
+
398
+ Ensure that the Answer Key includes detailed responses for all question types: correct options and explanations for MCQs, model answers for short answer questions, and outlines or key points for essay questions.
399
  """
400
+ return generate_content(prompt, max_tokens=4000)
401
 
402
  @spaces.GPU
403
  def generate_flashcards():