Spaces:
Build error
Build error
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,13 +1,9 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 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 |
-
|
| 11 |
-
|
| 12 |
-
# Start the Python application
|
| 13 |
python app.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Ensure we are in the app directory
|
| 4 |
+
cd /home/user/app
|
| 5 |
|
| 6 |
+
echo "Starting the Stable Diffusion Space..."
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
# Launch the app (assumes your main file is named app.py)
|
|
|
|
|
|
|
| 9 |
python app.py
|