Spaces:
Running
Running
Update install.sh
Browse files- install.sh +15 -4
install.sh
CHANGED
@@ -1,12 +1,23 @@
|
|
1 |
#!/bin/bash
|
2 |
set -e
|
3 |
|
4 |
-
echo "π
|
|
|
|
|
|
|
5 |
python -m pip install --upgrade pip
|
6 |
-
python -m pip install -r requirements.txt
|
7 |
|
8 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
mkdir -p model_cache tmp
|
10 |
chmod -R 777 model_cache tmp
|
11 |
|
12 |
-
echo "β
|
|
|
1 |
#!/bin/bash
|
2 |
set -e
|
3 |
|
4 |
+
echo "π Starting Hugging Face Space build"
|
5 |
+
echo "------------------------------------"
|
6 |
+
|
7 |
+
# Upgrade pip first
|
8 |
python -m pip install --upgrade pip
|
|
|
9 |
|
10 |
+
# Install all Python dependencies from requirements.txt
|
11 |
+
if [ -f requirements.txt ]; then
|
12 |
+
echo "π¦ Installing Python dependencies from requirements.txt..."
|
13 |
+
pip install --no-cache-dir -r requirements.txt
|
14 |
+
else
|
15 |
+
echo "β ERROR: requirements.txt not found in repo root"
|
16 |
+
exit 1
|
17 |
+
fi
|
18 |
+
|
19 |
+
# Create cache/temp directories for model storage
|
20 |
mkdir -p model_cache tmp
|
21 |
chmod -R 777 model_cache tmp
|
22 |
|
23 |
+
echo "β
Build complete β environment ready to launch!"
|