Skip to content

Commit

Permalink
fix: check len not list for available models
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 4, 2023
1 parent 7b43fc7 commit 178e82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde_worker_regen/process_management/inference_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(
)
return

if SharedModelManager.manager.compvis.available_models == 0:
if len(SharedModelManager.manager.compvis.available_models) == 0:
logger.critical("No models available in SharedModelManager")
self.send_process_state_change_message(
process_state=HordeProcessState.PROCESS_ENDED,
Expand Down

0 comments on commit 178e82b

Please sign in to comment.