strisunshine
commited on
Commit
•
21a8e90
1
Parent(s):
de2a4b8
start_server.sh
Browse files- start_server.sh +19 -0
start_server.sh
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
3 |
+
|
4 |
+
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
5 |
+
|
6 |
+
NOTEBOOK_DIR="/data"
|
7 |
+
|
8 |
+
jupyter-lab \
|
9 |
+
--ip 0.0.0.0 \
|
10 |
+
--port 7860 \
|
11 |
+
--no-browser \
|
12 |
+
--allow-root \
|
13 |
+
--ServerApp.token="$JUPYTER_TOKEN" \
|
14 |
+
--ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
|
15 |
+
--ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
|
16 |
+
--ServerApp.disable_check_xsrf=True \
|
17 |
+
--LabApp.news_url=None \
|
18 |
+
--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
|
19 |
+
--notebook-dir=$NOTEBOOK_DIR
|