philippds commited on
Commit
aa00ff2
·
verified ·
1 Parent(s): 43d77da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -315,14 +315,14 @@ with block:
315
  dp_key, difficulty_pattern_ids = get_difficulty_pattern_ids_and_key(
316
  hivex_env["hivex_env"], path_
317
  )
 
 
 
 
 
 
318
 
319
- for task_id in range(0, hivex_env["task_count"]):
320
- # Check if dp_key is defined and difficulty_pattern_ids is not empty
321
- if dp_key is not None and len(difficulty_pattern_ids) > 0:
322
- selected_checkboxes = gr.CheckboxGroup(
323
- [str(dp_id) for dp_id in difficulty_pattern_ids], label=dp_key
324
- )
325
-
326
  task_title = convert_to_title_case(
327
  get_task(hivex_env["hivex_env"], task_id, path_)
328
  )
 
315
  dp_key, difficulty_pattern_ids = get_difficulty_pattern_ids_and_key(
316
  hivex_env["hivex_env"], path_
317
  )
318
+
319
+ # Check if dp_key is defined and difficulty_pattern_ids is not empty
320
+ if dp_key is not None and len(difficulty_pattern_ids) > 0:
321
+ selected_checkboxes = gr.CheckboxGroup(
322
+ [str(dp_id) for dp_id in difficulty_pattern_ids], label=dp_key
323
+ )
324
 
325
+ for task_id in range(0, hivex_env["task_count"]):
 
 
 
 
 
 
326
  task_title = convert_to_title_case(
327
  get_task(hivex_env["hivex_env"], task_id, path_)
328
  )