mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: backend format test
This commit is contained in:
parent
309cd645f1
commit
fa4d1d42a5
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import asyncio
|
||||
import websocket # NOTE: websocket-client (https://github.com/websocket-client/websocket-client)
|
||||
import uuid
|
||||
import json
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
|
|
@ -398,7 +397,9 @@ async def comfyui_generate_image(
|
|||
return None
|
||||
|
||||
try:
|
||||
images = await asyncio.to_thread(get_images, ws, comfyui_prompt, client_id, base_url)
|
||||
images = await asyncio.to_thread(
|
||||
get_images, ws, comfyui_prompt, client_id, base_url
|
||||
)
|
||||
except Exception as e:
|
||||
log.exception(f"Error while receiving images: {e}")
|
||||
images = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue