Spaces:
Build error
Build error
Delete install.sh
Browse files- install.sh +0 -42
install.sh
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
set -e # Stop script immediately on error
|
3 |
-
|
4 |
-
echo "π Starting Hugging Face Space build"
|
5 |
-
echo "------------------------------------"
|
6 |
-
|
7 |
-
# Step 1 β Upgrade pip
|
8 |
-
echo "β¬οΈ Upgrading pip..."
|
9 |
-
python -m pip install --upgrade pip
|
10 |
-
|
11 |
-
# Step 2 β Install Python dependencies
|
12 |
-
if [ -f requirements.txt ]; then
|
13 |
-
echo "π¦ Installing dependencies from requirements.txt..."
|
14 |
-
pip install --no-cache-dir -r requirements.txt
|
15 |
-
else
|
16 |
-
echo "β ERROR: requirements.txt not found in repo root!"
|
17 |
-
exit 1
|
18 |
-
fi
|
19 |
-
|
20 |
-
# Step 3 β Create cache/temp directories
|
21 |
-
echo "π Creating cache and temp directories..."
|
22 |
-
mkdir -p model_cache tmp
|
23 |
-
chmod -R 777 model_cache tmp
|
24 |
-
|
25 |
-
# Step 4 β Verify moviepy installation
|
26 |
-
echo "π Verifying moviepy installation..."
|
27 |
-
python - << 'EOF'
|
28 |
-
try:
|
29 |
-
import moviepy.editor
|
30 |
-
print("β
moviepy is installed and working")
|
31 |
-
except ImportError as e:
|
32 |
-
print("β moviepy is NOT installed!")
|
33 |
-
raise e
|
34 |
-
EOF
|
35 |
-
|
36 |
-
# Step 5 β Show installed packages
|
37 |
-
echo "------------------------------------"
|
38 |
-
echo "π Installed Python packages:"
|
39 |
-
pip list
|
40 |
-
echo "------------------------------------"
|
41 |
-
|
42 |
-
echo "β
Build complete β environment ready to launch!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|