Spaces:
Running
on
Zero
Running
on
Zero
Your Name
commited on
Commit
·
6d974e6
1
Parent(s):
17a14e9
touch ups
Browse files- install.py +4 -4
- run.py +3 -3
install.py
CHANGED
@@ -207,8 +207,8 @@ def install_custom_nodes():
|
|
207 |
|
208 |
|
209 |
if __name__ == "__main__":
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
print("🎉 Setup Complete! Run `run.py` to start ComfyUI.")
|
|
|
207 |
|
208 |
|
209 |
if __name__ == "__main__":
|
210 |
+
install_comfyui()
|
211 |
+
install_custom_nodes()
|
212 |
+
download_huggingface_models()
|
213 |
+
download_and_extract_antelopev2()
|
214 |
print("🎉 Setup Complete! Run `run.py` to start ComfyUI.")
|
run.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
|
4 |
-
|
5 |
PORT = 8000
|
6 |
|
7 |
def run_comfyui():
|
8 |
"""Launch ComfyUI with external access."""
|
9 |
-
os.chdir(
|
10 |
print(f"🚀 Launching ComfyUI on port {PORT}...")
|
11 |
|
12 |
subprocess.run(f"python main.py --listen 0.0.0.0 --port {PORT} --disable-auto-launch", shell=True)
|
13 |
|
14 |
if __name__ == "__main__":
|
15 |
run_comfyui()
|
16 |
-
print(f"Now run port-forwarding\nssh -L {PORT}:localhost:{PORT} root@[
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
|
4 |
+
COMFYUI_PATH = "./ComfyUI"
|
5 |
PORT = 8000
|
6 |
|
7 |
def run_comfyui():
|
8 |
"""Launch ComfyUI with external access."""
|
9 |
+
os.chdir(COMFYUI_PATH)
|
10 |
print(f"🚀 Launching ComfyUI on port {PORT}...")
|
11 |
|
12 |
subprocess.run(f"python main.py --listen 0.0.0.0 --port {PORT} --disable-auto-launch", shell=True)
|
13 |
|
14 |
if __name__ == "__main__":
|
15 |
run_comfyui()
|
16 |
+
print(f"Now run port-forwarding\nssh -L {PORT}:localhost:{PORT} root@[IP_ADDRESS] -p [RUNPOD_PORT] -i ~/.ssh/[PRIVATE_KEY_NAME]")
|