mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 15:55:01 +02:00
Set online after preload. Move ident to include in if check.
This commit is contained in:
@ -252,7 +252,7 @@ def thread_render(device):
|
|||||||
}
|
}
|
||||||
if runtime.thread_data.device != 'cpu' or is_alive() == 1:
|
if runtime.thread_data.device != 'cpu' or is_alive() == 1:
|
||||||
preload_model()
|
preload_model()
|
||||||
current_state = ServerStates.Online
|
current_state = ServerStates.Online
|
||||||
while True:
|
while True:
|
||||||
task_cache.clean()
|
task_cache.clean()
|
||||||
if isinstance(current_state_error, SystemExit):
|
if isinstance(current_state_error, SystemExit):
|
||||||
|
Reference in New Issue
Block a user