Defter77 commited on
Commit
7fb74b3
·
verified ·
1 Parent(s): 64eb76c

Upload start.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. start.sh +25 -0
start.sh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Print system information
4
+ echo "=== System Information ==="
5
+ echo "Python version: $(python3 --version)"
6
+ echo "CUDA version: $(nvcc --version 2>/dev/null || echo 'NVCC not found')"
7
+ echo "GPU information: $(nvidia-smi || echo 'NVIDIA-SMI not found')"
8
+ echo "==========================="
9
+
10
+ # Start ComfyUI in the background
11
+ cd /app/ComfyUI
12
+ python3 main.py --listen 0.0.0.0 --port 8188 &
13
+ COMFY_PID=$!
14
+
15
+ # Wait for ComfyUI to start
16
+ echo "Starting ComfyUI server..."
17
+ sleep 10
18
+
19
+ # Start the web interface
20
+ cd /app
21
+ echo "Starting Gradio interface..."
22
+ python3 app.py
23
+
24
+ # If the Gradio app crashes, kill ComfyUI too
25
+ kill $COMFY_PID