Spaces:
Build error
Build error
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,16 +1,13 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
python3 /home/user/app.py &
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
#
|
| 9 |
-
#
|
| 10 |
-
python3 -m sd_backend_server --port 11434 --host 127.0.0.1 &
|
| 11 |
|
| 12 |
-
echo "
|
| 13 |
-
sleep 10
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Optional: Print GPU info for debugging
|
| 4 |
+
nvidia-smi
|
|
|
|
| 5 |
|
| 6 |
+
# Optional: Pre-download model weights to the container cache
|
| 7 |
+
# to avoid timeout during the first user request
|
| 8 |
+
# python -c "from diffusers import DiffusionPipeline; DiffusionPipeline.from_pretrained('runwayml/stable-diffusion-v1-5')"
|
|
|
|
| 9 |
|
| 10 |
+
echo "Starting Stable Diffusion App..."
|
|
|
|
| 11 |
|
| 12 |
+
# Start the Python application
|
| 13 |
+
python app.py
|