Princeaka commited on
Commit
c7b063e
Β·
verified Β·
1 Parent(s): 1afccba

Update install.sh

Browse files
Files changed (1) hide show
  1. install.sh +7 -24
install.sh CHANGED
@@ -1,29 +1,12 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- echo "πŸš€ Setting up Multimodal AI Environment"
5
- echo "--------------------------------------"
 
6
 
7
- # Create virtual environment
8
- python -m venv .venv
9
- source .venv/bin/activate
10
 
11
- # Install core requirements
12
- pip install --upgrade pip
13
- pip install -r requirements.txt
14
-
15
- # Verify critical installations
16
- echo "βœ… Installation Complete"
17
- echo "Installed Packages:"
18
- pip list | grep -E "torch|transformers|diffusers|gradio"
19
-
20
- # Space-specific optimizations
21
- if [ "$SPACES" = "1" ]; then
22
- echo "πŸ”§ Applying Space Optimizations"
23
- mkdir -p model_cache
24
- mkdir -p tmp
25
- chmod -R 777 model_cache
26
- chmod -R 777 tmp
27
- fi
28
-
29
- echo "🌐 Ready to launch!"
 
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"