hoololi commited on
Commit
30a9042
·
verified ·
1 Parent(s): 4231f17

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -20
app.py CHANGED
@@ -137,32 +137,43 @@ with gr.Blocks(
137
  4. Cliquez sur **➡️ NEXT !** pour la question suivante
138
 
139
  À la fin, vous pourrez consulter vos résultats et contribuer au dataset ouvert !
140
- ---
141
  """
142
  )
143
 
144
  # Configuration de la session
145
- with gr.Row():
146
- duration_choice = gr.Radio(
147
- choices=["30 secondes", "60 secondes"],
148
- value="30 secondes",
149
- label="⏱️ Durée",
150
- elem_classes=["radio-group"]
151
- )
 
 
 
 
152
 
153
- operation_choice = gr.Radio(
154
- choices=["×", "+", "-", "÷", "Aléatoire"],
155
- value="×",
156
- label="🔢 Opération",
157
- elem_classes=["radio-group"]
158
- )
 
 
 
 
159
 
160
- difficulty_choice = gr.Radio(
161
- choices=["Facile", "Difficile"],
162
- value="Facile",
163
- label="🎯 Difficulté",
164
- elem_classes=["radio-group"]
165
- )
 
 
 
 
166
 
167
  with gr.Row():
168
  with gr.Column(scale=1):
 
137
  4. Cliquez sur **➡️ NEXT !** pour la question suivante
138
 
139
  À la fin, vous pourrez consulter vos résultats et contribuer au dataset ouvert !
 
140
  """
141
  )
142
 
143
  # Configuration de la session
144
+ with gr.Column():
145
+ with gr.Row():
146
+ with gr.Column(scale=1, min_width=150):
147
+ gr.Markdown("### ⏱️ Durée")
148
+ with gr.Column(scale=3):
149
+ duration_choice = gr.Radio(
150
+ choices=["30 secondes", "60 secondes"],
151
+ value="30 secondes",
152
+ label="",
153
+ elem_classes=["radio-group"]
154
+ )
155
 
156
+ with gr.Row():
157
+ with gr.Column(scale=1, min_width=150):
158
+ gr.Markdown("### 🔢 Opération")
159
+ with gr.Column(scale=3):
160
+ operation_choice = gr.Radio(
161
+ choices=["×", "+", "-", "÷", "Aléatoire"],
162
+ value="×",
163
+ label="",
164
+ elem_classes=["radio-group"]
165
+ )
166
 
167
+ with gr.Row():
168
+ with gr.Column(scale=1, min_width=150):
169
+ gr.Markdown("### 🎯 Difficulté")
170
+ with gr.Column(scale=3):
171
+ difficulty_choice = gr.Radio(
172
+ choices=["Facile", "Difficile"],
173
+ value="Facile",
174
+ label="",
175
+ elem_classes=["radio-group"]
176
+ )
177
 
178
  with gr.Row():
179
  with gr.Column(scale=1):