feat(builder): move away from docker file to modal commands

This commit is contained in:
BennyKok
2024-01-07 21:07:48 +08:00
parent 7ab4edb069
commit c339cc4234
3 changed files with 209 additions and 42 deletions
@@ -3,9 +3,9 @@ import requests
import time
import subprocess
command = ["python3", "/comfyui/main.py", "--disable-auto-launch", "--disable-metadata", "--cpu"]
command = ["python", "main.py", "--disable-auto-launch", "--disable-metadata", "--cpu"]
# Start the server
server_process = subprocess.Popen(command)
server_process = subprocess.Popen(command, cwd="/comfyui")
def check_server(url, retries=50, delay=500):
for i in range(retries):