mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-25 16:45:43 +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 logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import py_share
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
|
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
|
||||||
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
|
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:
|
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.")
|
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()
|
event_loop, _, start_all_func = start_comfyui()
|
||||||
try:
|
try:
|
||||||
x = start_all_func()
|
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=ngrok_thread, daemon=True, args=(8188,)).start()
|
||||||
threading.Thread(target=zrok_thread, daemon=True, args=(8188,)).start()
|
# threading.Thread(target=zrok_thread, daemon=True, args=(8188,)).start()
|
||||||
time.sleep(5) # 观察5秒内是否有输出
|
# time.sleep(5) # 观察5秒内是否有输出
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user