File size: 893 Bytes
905b8ff
 
 
8c3b6f5
 
 
 
c7b063e
905b8ff
8c3b6f5
 
 
 
 
 
 
 
 
 
c7b063e
 
3e6e915
1b1eb9f
 
 
 
 
 
 
 
 
8c3b6f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -e

echo "πŸš€ Starting Hugging Face Space build"
echo "------------------------------------"

# Upgrade pip first
python -m pip install --upgrade pip

# Install all Python dependencies from requirements.txt
if [ -f requirements.txt ]; then
    echo "πŸ“¦ Installing Python dependencies from requirements.txt..."
    pip install --no-cache-dir -r requirements.txt
else
    echo "❌ ERROR: requirements.txt not found in repo root"
    exit 1
fi

# Create cache/temp directories for model storage
mkdir -p model_cache tmp
chmod -R 777 model_cache tmp

# Verify moviepy is installed
python -c "import moviepy.editor; print('βœ… moviepy is installed and working')"

# List installed packages
echo "------------------------------------"
echo "πŸ“‹ Installed packages:"
pip list
echo "------------------------------------"

echo "βœ… Build complete β€” environment ready to launch!"