mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Update server.py
If outputdir doesn't exist, just create it
This commit is contained in:
parent
0422274440
commit
0b829dc4d4
@ -145,7 +145,7 @@ class PromptServer():
|
||||
output_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "output")
|
||||
|
||||
if not os.path.exists(output_dir):
|
||||
return web.Response(status=404)
|
||||
os.mkdir(output_dir)
|
||||
|
||||
images = [f for f in os.listdir(output_dir) if f.endswith('.png')]
|
||||
# Check the length of the images list
|
||||
|
||||
Loading…
Reference in New Issue
Block a user