capradeepgujaran commited on
Commit
90d4dd5
·
verified ·
1 Parent(s): 3f0cb92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -560,9 +560,9 @@ def create_quiz_interface():
560
 
561
  num_questions = gr.Slider(
562
  minimum=1,
563
- maximum=5,
564
- value=3,
565
- step=1,
566
  label="Number of Questions"
567
  )
568
 
@@ -590,7 +590,7 @@ def create_quiz_interface():
590
  # Navigation
591
  with gr.Row():
592
  prev_btn = gr.Button("← Previous", variant="secondary", size="sm")
593
- question_counter = gr.Markdown("Question 1 of 3")
594
  next_btn = gr.Button("Next →", variant="secondary", size="sm")
595
 
596
  gr.Markdown("---") # Separator
 
560
 
561
  num_questions = gr.Slider(
562
  minimum=1,
563
+ maximum=10,
564
+ value=5,
565
+ step=2,
566
  label="Number of Questions"
567
  )
568
 
 
590
  # Navigation
591
  with gr.Row():
592
  prev_btn = gr.Button("← Previous", variant="secondary", size="sm")
593
+ question_counter = gr.Markdown("Question 1 of ",{len(questions)})
594
  next_btn = gr.Button("Next →", variant="secondary", size="sm")
595
 
596
  gr.Markdown("---") # Separator