Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 578 |
-
# Question
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|