Move client session init to async function.

This commit is contained in:
Robin Huang
2024-08-06 20:38:39 -07:00
parent 6976ccc5ca
commit 8af203ecc6
2 changed files with 6 additions and 2 deletions

View File

@@ -214,6 +214,7 @@ if __name__ == "__main__":
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
server = server.PromptServer(loop)
loop.run_until_complete(server.setup())
q = execution.PromptQueue(server)
extra_model_paths_config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "extra_model_paths.yaml")