acecalisto3 commited on
Commit
f6d2e06
·
1 Parent(s): 4aeb3aa
Files changed (1) hide show
  1. app2.py +6 -7
app2.py CHANGED
@@ -1480,13 +1480,12 @@ def create_modern_interface():
1480
  # When QR codes are generated, update the state with the list of paths
1481
  # and initialize the enabled_qr_codes state with all indices enabled
1482
  if qr_paths_list is None:
1483
- num_qrs=0
1484
- else:
1485
- else:
1486
- num_qrs=len(qr_paths_list)
1487
- initial_enabled_states = list(range(num_qrs))
1488
- return qr_paths_list, initial_enabled_states # Return paths list and initial enabled state
1489
-
1490
 
1491
  # Link events
1492
  example_btn.click(load_example, inputs=[], outputs=text_input)
 
1480
  # When QR codes are generated, update the state with the list of paths
1481
  # and initialize the enabled_qr_codes state with all indices enabled
1482
  if qr_paths_list is None:
1483
+ num_qrs = 0
1484
+ else:
1485
+ num_qrs = len(qr_paths_list)
1486
+
1487
+ initial_enabled_states = list(range(num_qrs))
1488
+ return qr_paths_list, initial_enabled_states # Return paths list and initial enabled state
 
1489
 
1490
  # Link events
1491
  example_btn.click(load_example, inputs=[], outputs=text_input)