aertit commited on
Commit
b728206
1 Parent(s): c7410d1

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +14 -0
entrypoint.sh ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ PASSWORD="${PASSWORD:=huggingface}"
4
+ echo "Starting Jupyter Lab with token $PASSWORD"
5
+
6
+ jupyter lab \
7
+ --ip=0.0.0.0 \
8
+ --port=7860 \
9
+ --no-browser \
10
+ --allow-root \
11
+ --NotebookApp.token=$PASSWORD \
12
+ --NotebookApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
13
+ --NotebookApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
14
+ --NotebookApp.disable_check_xsrf=True