Spaces:
Sleeping
Sleeping
Remove HF_TOKEN from script
Browse files
deploy.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
sudo apt update
|
| 4 |
+
# sudo apt install -y libgl1-mesa-glx libglib2.0-0 libsm6 libxrender1 libxext6 ffmpeg
|
| 5 |
+
sudo apt install -y libgl1-mesa-glx
|
| 6 |
+
|
| 7 |
+
cd ~/projects/
|
| 8 |
+
if [ -d "Image_upscaling" ]; then
|
| 9 |
+
cd Image_upscaling && git pull origin main
|
| 10 |
+
else
|
| 11 |
+
git clone https://github.com/harikp196/Image_upscaling.git
|
| 12 |
+
fi
|
| 13 |
+
|
| 14 |
+
cd ~/projects
|
| 15 |
+
python3 -m venv venv
|
| 16 |
+
source venv/bin/activate
|
| 17 |
+
|
| 18 |
+
pip install --upgrade pip
|
| 19 |
+
pip install -r ~/projects/Image_upscaling/requirements.txt
|
| 20 |
+
|
| 21 |
+
nohup python3 ~/projects/Image_upscaling/app.py > ~/projects/project1.log 2>&1 &
|