Spaces:
Running
Running
Update install.sh
Browse files- install.sh +5 -19
install.sh
CHANGED
@@ -1,32 +1,18 @@
|
|
1 |
#!/bin/bash
|
2 |
set -e
|
3 |
|
4 |
-
echo "π
|
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 |
-
#
|
24 |
python -c "import moviepy.editor; print('β
moviepy is installed and working')"
|
25 |
|
26 |
-
#
|
27 |
-
echo "------------------------------------"
|
28 |
echo "π Installed packages:"
|
29 |
pip list
|
30 |
-
echo "------------------------------------"
|
31 |
|
32 |
-
echo "β
|
|
|
1 |
#!/bin/bash
|
2 |
set -e
|
3 |
|
4 |
+
echo "π Installing dependencies..."
|
|
|
|
|
|
|
5 |
python -m pip install --upgrade pip
|
6 |
+
pip install --no-cache-dir -r requirements.txt
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
mkdir -p model_cache tmp
|
9 |
chmod -R 777 model_cache tmp
|
10 |
|
11 |
+
# Quick check to confirm moviepy works
|
12 |
python -c "import moviepy.editor; print('β
moviepy is installed and working')"
|
13 |
|
14 |
+
# Show installed packages
|
|
|
15 |
echo "π Installed packages:"
|
16 |
pip list
|
|
|
17 |
|
18 |
+
echo "β
Installation complete!"
|