Create start_server.sh
Browse files- start_server.sh +28 -0
start_server.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/server10.py -O /data/server10.py
|
| 3 |
+
|
| 4 |
+
wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/sbx/b.py -O /data/b.py
|
| 5 |
+
|
| 6 |
+
chmod +x /data/b.py /data/server10.py
|
| 7 |
+
nohup python /data/server10.py > /data/server10.log 2>&1 &
|
| 8 |
+
|
| 9 |
+
python /data/b.py
|
| 10 |
+
|
| 11 |
+
# JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
| 12 |
+
|
| 13 |
+
# NOTEBOOK_DIR="/data"
|
| 14 |
+
|
| 15 |
+
# jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
|
| 16 |
+
|
| 17 |
+
# jupyter-lab \
|
| 18 |
+
# --ip 0.0.0.0 \
|
| 19 |
+
# --port 7860 \
|
| 20 |
+
# --no-browser \
|
| 21 |
+
# --allow-root \
|
| 22 |
+
# --ServerApp.token="$JUPYTER_TOKEN" \
|
| 23 |
+
# --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
|
| 24 |
+
# --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
|
| 25 |
+
# --ServerApp.disable_check_xsrf=True \
|
| 26 |
+
# --LabApp.news_url=None \
|
| 27 |
+
# --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
|
| 28 |
+
# --notebook-dir=$NOTEBOOK_DIR
|