fix control on non-active tab

This commit is contained in:
Vladimir Mandic
2024-04-30 08:17:44 -04:00
parent 8f5d97e817
commit e66fe42f4e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -158,6 +158,7 @@ def control_run(units: List[unit.Unit] = [], inputs: List[Image.Image] = [], ini
shared.log.warning('Model not loaded')
return [], '', '', 'Error: model not loaded'
unit_type = unit_type.strip().lower() if unit_type is not None else ''
t0 = time.time()
num_units = 0
for u in units: