Spaces:
Running
Running
Update install.sh
Browse files- install.sh +7 -24
install.sh
CHANGED
@@ -1,29 +1,12 @@
|
|
1 |
#!/bin/bash
|
2 |
set -e
|
3 |
|
4 |
-
echo "π
|
5 |
-
|
|
|
6 |
|
7 |
-
# Create
|
8 |
-
|
9 |
-
|
10 |
|
11 |
-
|
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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|