Princeaka commited on
Commit
3240f66
Β·
verified Β·
1 Parent(s): 1b1eb9f

Update install.sh

Browse files
Files changed (1) hide show
  1. install.sh +5 -19
install.sh CHANGED
@@ -1,32 +1,18 @@
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
- # Verify moviepy is installed
24
  python -c "import moviepy.editor; print('βœ… moviepy is installed and working')"
25
 
26
- # List installed packages
27
- echo "------------------------------------"
28
  echo "πŸ“‹ Installed packages:"
29
  pip list
30
- echo "------------------------------------"
31
 
32
- echo "βœ… Build complete β€” environment ready to launch!"
 
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!"