We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b629bf9 commit 3fafdc2Copy full SHA for 3fafdc2
scripts/entrypoint.sh
@@ -1,7 +1,7 @@
1
# /bin/bash
2
3
# check if HF_MODEL_DIR is set and if not skip installing custom dependencies
4
-if [ -z "${HF_MODEL_DIR}" ]; then
+if [[ ! -z "${HF_MODEL_DIR}" ]]; then
5
# check if requirements.txt exists and if so install dependencies
6
if [ -f "${HF_MODEL_DIR}/requirements.txt" ]; then
7
echo "Installing custom dependencies from ${HF_MODEL_DIR}/requirements.txt"
0 commit comments