Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,14 +44,13 @@ with gr.Blocks() as demo:
|
|
| 44 |
# Initial Physics button
|
| 45 |
physics_button = gr.Button("Physics", variant="primary")
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
difficulty = gr.Radio(
|
| 56 |
["Beginner", "Intermediate", "Advanced"],
|
| 57 |
label="Difficulty Level",
|
|
|
|
| 44 |
# Initial Physics button
|
| 45 |
physics_button = gr.Button("Physics", variant="primary")
|
| 46 |
|
| 47 |
+
# Dropdowns for chapter and difficulty, initially hidden
|
| 48 |
+
chapter = gr.Dropdown(
|
| 49 |
+
["Select a chapter", "Chapter 1: Kinematics", "Chapter 2: Dynamics", "Chapter 3: Energy", "Chapter 4: Waves"],
|
| 50 |
+
label="Select Chapter",
|
| 51 |
+
visible=False,
|
| 52 |
+
info="Choose the chapter for the test"
|
| 53 |
+
)
|
|
|
|
| 54 |
difficulty = gr.Radio(
|
| 55 |
["Beginner", "Intermediate", "Advanced"],
|
| 56 |
label="Difficulty Level",
|