CoolFace
Apppublic

Humanzz/Manz

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
start_server.sh26 linesDownload Raw Back to root
1#!/bin/bash2JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"3 4NOTEBOOK_DIR="/data"5 6# Disable Jupyter announcements7jupyter labextension disable "@jupyterlab/apputils-extension:announcements"8 9# Start Jupyter Lab10jupyter-lab \11    --ip 0.0.0.0 \12    --port 7860 \13    --no-browser \14    --allow-root \15    --ServerApp.token="$JUPYTER_TOKEN" \16    --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \17    --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \18    --ServerApp.disable_check_xsrf=True \19    --LabApp.news_url=None \20    --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \21    --notebook-dir=$NOTEBOOK_DIR &22 23# Navigate to the bot directory and start the bot24cd bot25unzip bot26cd bot