Yulisa9901 commited on
Commit
22a37f9
·
verified ·
1 Parent(s): 0890591

Update start_server.sh

Browse files
Files changed (1) hide show
  1. start_server.sh +4 -3
start_server.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/bash
2
  JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
 
4
- NOTEBOOK_DIR="/data"
5
 
6
  jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
7
 
@@ -10,10 +10,11 @@ jupyter-lab \
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
 
1
  #!/bin/bash
2
  JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
 
4
+ NOTEBOOK_DIR="./"
5
 
6
  jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
7
 
 
10
  --port 7860 \
11
  --no-browser \
12
  --allow-root \
13
+ --ServerApp.token="" \
14
+ --ServerApp.password=""\
15
  --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
16
  --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
17
  --ServerApp.disable_check_xsrf=True \
18
  --LabApp.news_url=None \
19
  --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
20
+ --notebook-dir=$NOTEBOOK_DIR