ff / nv1 /start_server.sh
Qilan2's picture
Create start_server.sh
44ed451 verified
raw
history blame
588 Bytes
#!/bin/bash
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
source /opt/venv/bin/activate
# nohup python /data/app.py > /data/app.log 2>&1 &
# # nohup python /data/app.py > /dev/null 2>&1 &
# python /data/b.py
if [ "$N_PORT" != "7860" ]; then
nohup python /data/app.py > /data/app.log 2>&1 &
python /data/b.py
else
python /data/app.py
# 这里不运行 b.py
fi
# jupyter lab \
# --ip=0.0.0.0 \
# --port=7860 \
# --no-browser \
# --allow-root \
# --notebook-dir=/data \
# --ServerApp.token="$JUPYTER_TOKEN" \
# --ServerApp.disable_check_xsrf=True