mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: black
This commit is contained in:
parent
8d300bddd0
commit
9affdbbaad
@ -211,7 +211,7 @@ def invoke_api():
|
||||
port = find_port(app_config.port)
|
||||
if port != app_config.port:
|
||||
logger.warn(f"Port {app_config.port} in use, using port {port}")
|
||||
|
||||
|
||||
# Start our own event loop for eventing usage
|
||||
loop = asyncio.new_event_loop()
|
||||
config = uvicorn.Config(
|
||||
@ -229,7 +229,7 @@ def invoke_api():
|
||||
l.handlers.clear()
|
||||
for ch in logger.handlers:
|
||||
l.addHandler(ch)
|
||||
|
||||
|
||||
loop.run_until_complete(server.serve())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user