Spaces:
Running
Running
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!" |