Update app.py
Browse files
app.py
CHANGED
@@ -315,17 +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 |
-
print(dp_key)
|
320 |
-
print(difficulty_pattern_ids)
|
321 |
-
|
322 |
-
# Check if dp_key is defined and difficulty_pattern_ids is not empty
|
323 |
-
if dp_key is not None and len(difficulty_pattern_ids) > 0:
|
324 |
-
selected_checkboxes = gr.CheckboxGroup(
|
325 |
-
[str(dp_id) for dp_id in difficulty_pattern_ids], label=dp_key
|
326 |
-
)
|
327 |
-
|
328 |
for task_id in range(0, hivex_env["task_count"]):
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
task_title = convert_to_title_case(
|
330 |
get_task(hivex_env["hivex_env"], task_id, path_)
|
331 |
)
|
|
|
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 |
)
|