capradeepgujaran commited on
Commit
920c849
1 Parent(s): 3e6020c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -20
app.py CHANGED
@@ -574,26 +574,32 @@ def create_quiz_interface():
574
 
575
  # Assessment Tab
576
  with gr.Tab("📝 Step 2: Take Assessment") as assessment_tab:
577
- with gr.Box(visible=True) as question_box:
578
- # Question display
579
- question_display = gr.Markdown("", label="Current Question")
580
-
581
- # Single radio group for current question
582
- current_options = gr.Radio(
583
- choices=[],
584
- label="Select your answer:",
585
- visible=False
586
- )
587
-
588
- # Navigation
589
- with gr.Row():
590
- prev_btn = gr.Button("← Previous", variant="secondary", size="sm")
591
- question_counter = gr.Markdown("Question 1 of 3")
592
- next_btn = gr.Button("Next ", variant="secondary", size="sm")
593
-
594
- gr.Markdown("---") # Separator
595
-
596
- submit_btn = gr.Button("Submit Assessment", variant="primary", size="lg")
 
 
 
 
 
 
597
 
598
  # Results section
599
  with gr.Group(visible=False) as results_group:
 
574
 
575
  # Assessment Tab
576
  with gr.Tab("📝 Step 2: Take Assessment") as assessment_tab:
577
+ with gr.Column(visible=True) as question_box:
578
+ # Question section
579
+ with gr.Group():
580
+ # Question display
581
+ question_display = gr.Markdown("", label="Current Question")
582
+
583
+ # Single radio group for current question
584
+ current_options = gr.Radio(
585
+ choices=[],
586
+ label="Select your answer:",
587
+ visible=False
588
+ )
589
+
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
597
+
598
+ submit_btn = gr.Button(
599
+ "Submit Assessment",
600
+ variant="primary",
601
+ size="lg"
602
+ )
603
 
604
  # Results section
605
  with gr.Group(visible=False) as results_group: