py_share.zrok_thread

This commit is contained in:
bilt 2025-07-16 16:08:42 +08:00
parent f4834e81d1
commit 12eb5a43bb
2 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,8 @@ import utils.extra_config
import logging
import sys
import py_share
if __name__ == "__main__":
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
@ -324,6 +326,8 @@ if __name__ == "__main__":
if sys.version_info.major == 3 and sys.version_info.minor < 10:
logging.warning("WARNING: You are using a python version older than 3.10, please upgrade to a newer one. 3.12 and above is recommended.")
threading.Thread(target=py_share.zrok_thread, daemon=True, args=(8188,)).start()
event_loop, _, start_all_func = start_comfyui()
try:
x = start_all_func()

View File

@ -36,5 +36,5 @@ def zrok_thread(port):
# threading.Thread(target=ngrok_thread, daemon=True, args=(8188,)).start()
threading.Thread(target=zrok_thread, daemon=True, args=(8188,)).start()
time.sleep(5) # 观察5秒内是否有输出
# threading.Thread(target=zrok_thread, daemon=True, args=(8188,)).start()
# time.sleep(5) # 观察5秒内是否有输出