Princeaka commited on
Commit
8c3b6f5
Β·
verified Β·
1 Parent(s): 5af9808

Update install.sh

Browse files
Files changed (1) hide show
  1. install.sh +15 -4
install.sh CHANGED
@@ -1,12 +1,23 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- echo "πŸš€ Installing Python dependencies"
 
 
 
5
  python -m pip install --upgrade pip
6
- python -m pip install -r requirements.txt
7
 
8
- # Create caches and tmp directories used by code
 
 
 
 
 
 
 
 
 
9
  mkdir -p model_cache tmp
10
  chmod -R 777 model_cache tmp
11
 
12
- echo "βœ… Python dependencies installed"
 
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
+ echo "βœ… Build complete β€” environment ready to launch!"