Princeaka commited on
Commit
efc9242
Β·
verified Β·
1 Parent(s): fd08dce

Update install.sh

Browse files
Files changed (1) hide show
  1. install.sh +23 -7
install.sh CHANGED
@@ -1,13 +1,29 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- echo "πŸ“¦ Installing dependencies from requirements.txt..."
5
- pip install --no-cache-dir -r requirements.txt
6
 
7
- echo "πŸ”„ Forcing correct huggingface-hub version..."
8
- pip install --force-reinstall huggingface-hub==0.19.0
 
9
 
10
- echo "πŸ” Checking installed huggingface-hub version..."
11
- pip show huggingface-hub | grep Version
 
12
 
13
- echo "βœ… Installation complete."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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!"