mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 02:30:02 +08:00
py_share.zrok_thread
This commit is contained in:
parent
f4834e81d1
commit
12eb5a43bb
4
main.py
4
main.py
@ -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()
|
||||
|
||||
@ -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秒内是否有输出
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user