Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -560,9 +560,9 @@ def create_quiz_interface():
|
|
| 560 |
|
| 561 |
num_questions = gr.Slider(
|
| 562 |
minimum=1,
|
| 563 |
-
maximum=
|
| 564 |
-
value=
|
| 565 |
-
step=
|
| 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
|
| 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
|