FIX 修复误导入其他无关包的问题
This commit is contained in:
parent
f069f14424
commit
651e3ec4c1
|
|
@ -75,10 +75,10 @@ comfyui_auth_image = (
|
||||||
).add_local_file("../config/config.py",
|
).add_local_file("../config/config.py",
|
||||||
"/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py",
|
"/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py",
|
||||||
copy=True
|
copy=True
|
||||||
).workdir("/root/comfy")
|
).workdir("/root/comfy").add_local_python_source("ComfyUI_Auth")
|
||||||
)
|
)
|
||||||
|
|
||||||
comfyui_auth_app = modal.App(name="ComfyUI-Auth", image=comfyui_auth_image)
|
comfyui_auth_app = modal.App(name="ComfyUI-Auth", image=comfyui_auth_image, include_source=False)
|
||||||
comfyui_auth_app.set_description("ComfyUI Auth Server")
|
comfyui_auth_app.set_description("ComfyUI Auth Server")
|
||||||
|
|
||||||
with comfyui_auth_image.imports():
|
with comfyui_auth_image.imports():
|
||||||
|
|
|
||||||
|
|
@ -68,17 +68,17 @@ comfyui_auth_heygem_image = (
|
||||||
.run_commands("apt update && apt install -y curl build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev lzma liblzma-dev tk-dev libffi-dev")
|
.run_commands("apt update && apt install -y curl build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev lzma liblzma-dev tk-dev libffi-dev")
|
||||||
.run_commands("curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz&&tar -xf Python-3.8.12.tar.xz")
|
.run_commands("curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz&&tar -xf Python-3.8.12.tar.xz")
|
||||||
.run_commands("cd Python-3.8.12 && ./configure --enable-optimizations && make -j 10 && make altinstall")
|
.run_commands("cd Python-3.8.12 && ./configure --enable-optimizations && make -j 10 && make altinstall")
|
||||||
.add_local_file("../whl/heygem-1.0-py3-none-any.whl","/root/comfy/heygem-1.0-py3-none-any.whl", copy=True)
|
.add_local_file("../whl/heygem-1.0-py3-none-any.whl", "/root/heygem-1.0-py3-none-any.whl", copy=True)
|
||||||
.shell(["/bin/bash", "-c"])
|
.shell(["/bin/bash", "-c"])
|
||||||
.run_commands("python3.8 -m pip install /root/comfy/heygem-1.0-py3-none-any.whl")
|
.run_commands("python3.8 -m pip install /root/heygem-1.0-py3-none-any.whl")
|
||||||
.env({"LD_LIBRARY_PATH":"/usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib"})
|
.env({"LD_LIBRARY_PATH":"/usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib"})
|
||||||
.run_commands("ln -s /usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2 /usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so")
|
.run_commands("ln -s /usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2 /usr/local/lib/python3.8/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so")
|
||||||
.run_commands("python3.8 -m pip install https://github.com/pydata/numexpr/releases/download/v2.8.6/numexpr-2.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
|
.run_commands("python3.8 -m pip install https://github.com/pydata/numexpr/releases/download/v2.8.6/numexpr-2.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
|
||||||
.add_local_file("heygem.py", "/root/comfy/heygem.py", copy=True)
|
.add_local_file("heygem.py", "/root/comfy/heygem.py", copy=True)
|
||||||
.workdir("/root/comfy")
|
.workdir("/root/comfy").add_local_python_source("ComfyUI_Auth_HeyGem")
|
||||||
)
|
)
|
||||||
|
|
||||||
comfyui_auth_heygem_app = modal.App(name="ComfyUI-Auth-HeyGem", image=comfyui_auth_heygem_image)
|
comfyui_auth_heygem_app = modal.App(name="ComfyUI-Auth-HeyGem", image=comfyui_auth_heygem_image, include_source=False)
|
||||||
comfyui_auth_heygem_app.set_description("ComfyUI Auth HeyGem Server")
|
comfyui_auth_heygem_app.set_description("ComfyUI Auth HeyGem Server")
|
||||||
|
|
||||||
with comfyui_auth_heygem_image.imports():
|
with comfyui_auth_heygem_image.imports():
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,10 @@ comfyui_auth_latentsync_1_5_image = (
|
||||||
"apt update && apt install -y ffmpeg && ffmpeg -version"
|
"apt update && apt install -y ffmpeg && ffmpeg -version"
|
||||||
).add_local_file("../config/config.yaml", "/root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/config.yaml", copy=True
|
).add_local_file("../config/config.yaml", "/root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/config.yaml", copy=True
|
||||||
).add_local_file("../config/config.py", "/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py", copy=True
|
).add_local_file("../config/config.py", "/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py", copy=True
|
||||||
).workdir("/root/comfy")
|
).workdir("/root/comfy").add_local_python_source("ComfyUI_Auth_LatentSync1_5")
|
||||||
)
|
)
|
||||||
|
|
||||||
comfyui_auth_latentsync_1_5_app = modal.App(name="ComfyUI-Auth-LatentSync1_5", image=comfyui_auth_latentsync_1_5_image)
|
comfyui_auth_latentsync_1_5_app = modal.App(name="ComfyUI-Auth-LatentSync1_5", image=comfyui_auth_latentsync_1_5_image, include_source=False)
|
||||||
comfyui_auth_latentsync_1_5_app.set_description("ComfyUI Auth LatentSync1_5 Server")
|
comfyui_auth_latentsync_1_5_app.set_description("ComfyUI Auth LatentSync1_5 Server")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,10 @@ comfyui_base_image = (
|
||||||
"apt update && apt install -y ffmpeg && ffmpeg -version"
|
"apt update && apt install -y ffmpeg && ffmpeg -version"
|
||||||
).add_local_file("../config/config.yaml", "/root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/config.yaml", copy=True
|
).add_local_file("../config/config.yaml", "/root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/config.yaml", copy=True
|
||||||
).add_local_file("../config/config.py", "/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py", copy=True
|
).add_local_file("../config/config.py", "/root/comfy/ComfyUI/custom_nodes/cosyvoice_comfyui/pretrained_models/tools/config.py", copy=True
|
||||||
).workdir("/root/comfy")
|
).workdir("/root/comfy").add_local_python_source("ComfyUI_Base")
|
||||||
)
|
)
|
||||||
|
|
||||||
comfyui_base_app = modal.App(name="ComfyUI-Base", image=comfyui_base_image)
|
comfyui_base_app = modal.App(name="ComfyUI-Base", image=comfyui_base_image, include_source=False)
|
||||||
comfyui_base_app.set_description("ComfyUI Base Server")
|
comfyui_base_app.set_description("ComfyUI Base Server")
|
||||||
|
|
||||||
with comfyui_base_image.imports():
|
with comfyui_base_image.imports():
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,10 @@ heygem_base_image = (
|
||||||
.run_commands("python3.8 -m pip install https://github.com/pydata/numexpr/releases/download/v2.8.6/numexpr-2.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
|
.run_commands("python3.8 -m pip install https://github.com/pydata/numexpr/releases/download/v2.8.6/numexpr-2.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
|
||||||
.add_local_file("heygem.py", "/root/heygem.py", copy=True)
|
.add_local_file("heygem.py", "/root/heygem.py", copy=True)
|
||||||
.add_local_file("../config/config.yaml", "/root/config.yaml", copy=True)
|
.add_local_file("../config/config.yaml", "/root/config.yaml", copy=True)
|
||||||
.pip_install("boto3").pip_install("PyYAML").pip_install("requests").workdir("/root")
|
.pip_install("boto3").pip_install("PyYAML").pip_install("requests").workdir("/root").add_local_python_source("HeyGem_Base")
|
||||||
)
|
)
|
||||||
|
|
||||||
heygem_base_app = modal.App(name="HeyGem-Base", image=heygem_base_image)
|
heygem_base_app = modal.App(name="HeyGem-Base", image=heygem_base_image, include_source=False)
|
||||||
heygem_base_app.set_description("HeyGem Base Server")
|
heygem_base_app.set_description("HeyGem Base Server")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue