fixed output path bug

This commit is contained in:
deepbeepmeep 2025-08-14 10:25:49 +02:00
parent f4537e0cf2
commit ccea784949

2
wgp.py
View File

@ -8724,4 +8724,4 @@ if __name__ == "__main__":
else:
url = "http://" + server_name
webbrowser.open(url + ":" + str(server_port), new = 0, autoraise = True)
demo.launch(favicon_path="favicon.png", server_name=server_name, server_port=server_port, share=args.share, allowed_paths=[save_path] + [] if save_path == image_save_path else [image_save_path] )
demo.launch(favicon_path="favicon.png", server_name=server_name, server_port=server_port, share=args.share, allowed_paths=list({save_path, image_save_path}))