Spaces:
Paused
Paused
alessandro trinca tornidor
commited on
Commit
·
e1f1c87
1
Parent(s):
3a99929
[ci] try fix entrypoint.sh
Browse files- scripts/baremetal_entrypoint.sh +1 -1
- scripts/entrypoint.sh +4 -4
scripts/baremetal_entrypoint.sh
CHANGED
@@ -10,7 +10,7 @@ then
|
|
10 |
XDG_CACHE_HOME=$HOME/.cache
|
11 |
fi
|
12 |
|
13 |
-
echo "WORKDIR: ${WORKDIR} ..."
|
14 |
echo "XDG_CACHE_HOME: ${XDG_CACHE_HOME} ..."
|
15 |
|
16 |
cd ${WORKDIR}
|
|
|
10 |
XDG_CACHE_HOME=$HOME/.cache
|
11 |
fi
|
12 |
|
13 |
+
echo "WORKDIR (project/code folder): ${WORKDIR} ..."
|
14 |
echo "XDG_CACHE_HOME: ${XDG_CACHE_HOME} ..."
|
15 |
|
16 |
cd ${WORKDIR}
|
scripts/entrypoint.sh
CHANGED
@@ -60,10 +60,10 @@ echo "calculated CUDA_VISIBLE_DEVICES env variable: ${CUDA_VISIBLE_DEVICES}."
|
|
60 |
export CUDA_VISIBLE_DEVICES
|
61 |
|
62 |
PYTHONFILE="lisa_on_cuda.app.main"
|
63 |
-
if [ -z "$1" ];
|
64 |
-
then
|
65 |
-
PYTHONFILE="app.main"
|
66 |
-
fi
|
67 |
echo "running command 'uvicorn ${PYTHONFILE}:app --host 0.0.0.0 --port 7860'..."
|
68 |
uvicorn ${PYTHONFILE}:app --host 0.0.0.0 --port 7860
|
69 |
|
|
|
60 |
export CUDA_VISIBLE_DEVICES
|
61 |
|
62 |
PYTHONFILE="lisa_on_cuda.app.main"
|
63 |
+
#if [ -z "$1" ];
|
64 |
+
#then
|
65 |
+
# PYTHONFILE="app.main"
|
66 |
+
#fi
|
67 |
echo "running command 'uvicorn ${PYTHONFILE}:app --host 0.0.0.0 --port 7860'..."
|
68 |
uvicorn ${PYTHONFILE}:app --host 0.0.0.0 --port 7860
|
69 |
|