This commit is contained in:
Nicholas Koben Kao 2024-01-24 14:44:05 -08:00
parent eb04f246a4
commit dfd139294f

View File

@ -36,6 +36,7 @@ if not deploy_test:
# dockerfile_image = Image.from_dockerfile(f"{current_directory}/Dockerfile", context_mount=Mount.from_local_dir(f"{current_directory}/data", remote_path="/data"))
# dockerfile_image = Image.from_dockerfile(f"{current_directory}/Dockerfile", context_mount=Mount.from_local_dir(f"{current_directory}/data", remote_path="/data"))
print("about to build image")
dockerfile_image = (
modal.Image.debian_slim()
.apt_install("git", "wget")
@ -76,6 +77,8 @@ if not deploy_test:
.run_commands("python install_deps.py")
)
print("built image")
# Time to wait between API check attempts in milliseconds
COMFY_API_AVAILABLE_INTERVAL_MS = 50
# Maximum number of API check attempts
@ -306,4 +309,4 @@ def comfyui_app():
},
)()
return make_simple_proxy_app(ProxyContext(config))
return make_simple_proxy_app(ProxyContext(config))