amirkhanbloch commited on
Commit
dfae97c
·
verified ·
1 Parent(s): e2eb852

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
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
- # Updated Dropdown to include chapters under Physics
48
- chapter = gr.Dropdown(
49
- ["Physics", "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
-
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",