comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
49.7k stars 5.23k forks source link

startup_server是否能提前初始化 #501

Closed laojingwei closed 1 year ago

laojingwei commented 1 year ago

main.py

def startup_server(address, port):
            import webbrowser
            webbrowser.open("http://{}:{}".format(address, port))

Hello, can you put this method in front of the initialization? At present, I want to get a plug-in that can call the browser by custom, because in many cases, the default browser does not support the display of comfyui interface, so it needs to copy the path to other browsers, which is very inconvenient

Since this method is not initialized at present, it cannot be processed, so I would like to ask if you can handle this method. If possible, thank you very much

laojingwei commented 1 year ago

1