Update on_startup.sh
Browse files- on_startup.sh +3 -3
on_startup.sh
CHANGED
@@ -14,15 +14,15 @@ virtualenv my_project_env
|
|
14 |
source my_project_env/bin/activate
|
15 |
pip install jupyter
|
16 |
|
17 |
-
|
18 |
|
19 |
-
echo "Starting Jupyter Lab with token $
|
20 |
jupyter notebook \
|
21 |
--ip 0.0.0.0 \
|
22 |
--port 7183 \
|
23 |
--no-browser \
|
24 |
--allow-root \
|
25 |
-
--NotebookApp.token="$
|
26 |
--NotebookApp.password='' \
|
27 |
--NotebookApp.allow_origin='*' \
|
28 |
--NotebookApp.disable_check_xsrf=True \
|
|
|
14 |
source my_project_env/bin/activate
|
15 |
pip install jupyter
|
16 |
|
17 |
+
JUPYTER_TOKENT="${JUPYTER_TOKENT:=huggingface}"
|
18 |
|
19 |
+
echo "Starting Jupyter Lab with token $JUPYTER_TOKENT"
|
20 |
jupyter notebook \
|
21 |
--ip 0.0.0.0 \
|
22 |
--port 7183 \
|
23 |
--no-browser \
|
24 |
--allow-root \
|
25 |
+
--NotebookApp.token="$JUPYTER_TOKENT" \
|
26 |
--NotebookApp.password='' \
|
27 |
--NotebookApp.allow_origin='*' \
|
28 |
--NotebookApp.disable_check_xsrf=True \
|