Upload entrypoint.sh with huggingface_hub
Browse files- entrypoint.sh +11 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
if [[ -x "/init.sh" ]]; then
|
| 3 |
+
/init.sh
|
| 4 |
+
fi
|
| 5 |
+
. "${DL_ANACONDA_HOME}/etc/profile.d/conda.sh"
|
| 6 |
+
if [[ "${ENABLE_MULTI_ENV,,}" == 'true' ]]; then
|
| 7 |
+
conda activate jupyterlab
|
| 8 |
+
else
|
| 9 |
+
conda activate base
|
| 10 |
+
fi
|
| 11 |
+
exec "$@"
|