varunv2004 commited on
Commit
9060d31
·
verified ·
1 Parent(s): f9acfcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -59,18 +59,18 @@ def environment_setup(use_q6: bool):
59
  # Clone ComfyUI if missing
60
  if not os.path.isdir("./ComfyUI"):
61
  output.append("Cloning ComfyUI repo...")
62
- proc = subprocess.run("git clone https://github.com/Isi-dev/ComfyUI /content/ComfyUI", shell=True, capture_output=True, text=True)
63
  output.append(proc.stdout + proc.stderr)
64
  else:
65
  output.append("ComfyUI repo already exists")
66
 
67
  # Clone custom nodes repo
68
- if not os.path.isdir("/content/ComfyUI/custom_nodes/ComfyUI_GGUF"):
69
  output.append("Cloning ComfyUI_GGUF repo...")
70
- proc = subprocess.run("cd /content/ComfyUI/custom_nodes && git clone https://github.com/Isi-dev/ComfyUI_GGUF.git", shell=True, capture_output=True, text=True)
71
  output.append(proc.stdout + proc.stderr)
72
  # Install requirements for custom nodes
73
- proc = subprocess.run("pip install -r /content/ComfyUI/custom_nodes/ComfyUI_GGUF/requirements.txt", shell=True, capture_output=True, text=True)
74
  output.append(proc.stdout + proc.stderr)
75
  else:
76
  output.append("ComfyUI_GGUF repo already exists")
 
59
  # Clone ComfyUI if missing
60
  if not os.path.isdir("./ComfyUI"):
61
  output.append("Cloning ComfyUI repo...")
62
+ proc = subprocess.run("git clone https://github.com/Isi-dev/ComfyUI ./ComfyUI", shell=True, capture_output=True, text=True)
63
  output.append(proc.stdout + proc.stderr)
64
  else:
65
  output.append("ComfyUI repo already exists")
66
 
67
  # Clone custom nodes repo
68
+ if not os.path.isdir("./ComfyUI/custom_nodes/ComfyUI_GGUF"):
69
  output.append("Cloning ComfyUI_GGUF repo...")
70
+ proc = subprocess.run("cd ./ComfyUI/custom_nodes && git clone https://github.com/Isi-dev/ComfyUI_GGUF.git", shell=True, capture_output=True, text=True)
71
  output.append(proc.stdout + proc.stderr)
72
  # Install requirements for custom nodes
73
+ proc = subprocess.run("pip install -r ./ComfyUI/custom_nodes/ComfyUI_GGUF/requirements.txt", shell=True, capture_output=True, text=True)
74
  output.append(proc.stdout + proc.stderr)
75
  else:
76
  output.append("ComfyUI_GGUF repo already exists")