Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update start.sh
Browse files
start.sh
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
-
#!/bin/
|
2 |
|
|
|
|
|
|
|
3 |
rm -rf /var/lib/apt/lists/*
|
4 |
apt update
|
5 |
apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
|
|
|
1 |
+
#!/bin/bash
|
2 |
|
3 |
+
CONDA_ENV=$(head -1 /code/environment.yml | cut -d" " -f2)
|
4 |
+
eval "$(conda shell.bash hook)"
|
5 |
+
conda activate $CONDA_ENV
|
6 |
rm -rf /var/lib/apt/lists/*
|
7 |
apt update
|
8 |
apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
|