From 80cd3fb13caa1c1238a103c0b7bc2680a375d7fe Mon Sep 17 00:00:00 2001 From: RandomGitUser321 Date: Sun, 22 Sep 2024 08:05:12 -0400 Subject: [PATCH] directions on launching --- script_examples/gradio_websockets_api_example.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script_examples/gradio_websockets_api_example.py b/script_examples/gradio_websockets_api_example.py index cd667b8ab..1884d7e8e 100644 --- a/script_examples/gradio_websockets_api_example.py +++ b/script_examples/gradio_websockets_api_example.py @@ -8,6 +8,10 @@ # If you use Comfy Manager, make sure to set the preview type there because it will override --preview-method auto/latent2rgb/taesd launch flag settings # Check or change the preview_method in "/custom_nodes/ComfyUI-Manager/config.ini" +# If you chose to install Gradio to your ComfyUI python venv, open a command prompt this script_examples directory and run: +# ..\..\python_embeded\python.exe -s ..\script_examples\gradio_websockets_api_example.py +# To launch the app + import websocket #NOTE: websocket-client (https://github.com/websocket-client/websocket-client) import uuid import json @@ -302,4 +306,4 @@ with gr.Blocks(analytics_enabled=False, fill_width=True, fill_height=True,) as e # Adjust settings to your needs https://www.gradio.app/docs/gradio/blocks#blocks-launch for more info example.queue(max_size=2,) # how many users can queue up in line -example.launch(share=False, inbrowser=True, server_name="0.0.0.0", server_port=7860, enable_monitoring=False) # good for LAN-only setups \ No newline at end of file +example.launch(share=False, inbrowser=True, server_name="0.0.0.0", server_port=7860, enable_monitoring=False) # good for LAN-only setups