directions on launching

This commit is contained in:
RandomGitUser321 2024-09-22 08:05:12 -04:00 committed by GitHub
parent 826ad087a0
commit 80cd3fb13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 # 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" # 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 websocket #NOTE: websocket-client (https://github.com/websocket-client/websocket-client)
import uuid import uuid
import json 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 # 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.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 example.launch(share=False, inbrowser=True, server_name="0.0.0.0", server_port=7860, enable_monitoring=False) # good for LAN-only setups