Qilan2 commited on
Commit
67e8c4f
·
verified ·
1 Parent(s): 5e25a58

Update nv1/start_server.sh

Browse files
Files changed (1) hide show
  1. nv1/start_server.sh +10 -2
nv1/start_server.sh CHANGED
@@ -1,12 +1,20 @@
1
  #!/bin/bash
2
- JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
  source /opt/venv/bin/activate
4
  # nohup python /data/app.py > /data/app.log 2>&1 &
5
  # # nohup python /data/app.py > /dev/null 2>&1 &
6
  # python /data/app.py
7
  if [ "$N_PORT" != "7860" ]; then
8
  nohup python /data/app.py > /data/app.log 2>&1 &
9
- python /data/b.py
 
 
 
 
 
 
 
 
10
  else
11
  python /data/app.py
12
  # 这里不运行 b.py
 
1
  #!/bin/bash
2
+ JUPYTER_TOKEN="${JUPYTER_TOKEN:=qilan}"
3
  source /opt/venv/bin/activate
4
  # nohup python /data/app.py > /data/app.log 2>&1 &
5
  # # nohup python /data/app.py > /dev/null 2>&1 &
6
  # python /data/app.py
7
  if [ "$N_PORT" != "7860" ]; then
8
  nohup python /data/app.py > /data/app.log 2>&1 &
9
+ # python /data/b.py
10
+ jupyter lab \
11
+ --ip=0.0.0.0 \
12
+ --port=7860 \
13
+ --no-browser \
14
+ --allow-root \
15
+ --notebook-dir=/data \
16
+ --ServerApp.token="$JUPYTER_TOKEN" \
17
+ --ServerApp.disable_check_xsrf=True
18
  else
19
  python /data/app.py
20
  # 这里不运行 b.py