Spaces:
Paused
Paused
Update start_server.sh
Browse files- start_server.sh +9 -8
start_server.sh
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
#!/bin/bash
|
2 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
3 |
|
4 |
-
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
10 |
|
|
|
11 |
# jupyter-lab \
|
12 |
# --ip 0.0.0.0 \
|
13 |
# --port 7860 \
|
@@ -18,6 +21,4 @@ tensorboard --logdir=logs/44k --host 0.0.0.0 --port 7860
|
|
18 |
# --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
|
19 |
# --ServerApp.disable_check_xsrf=True \
|
20 |
# --LabApp.news_url=None \
|
21 |
-
# --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate"
|
22 |
-
|
23 |
-
# python app.py
|
|
|
1 |
#!/bin/bash
|
2 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
3 |
|
|
|
4 |
|
5 |
+
if [[ ! -f data.csv ]] || [[ ! -f dataset_config.json ]]; then
|
6 |
+
python app.py
|
7 |
+
else
|
8 |
+
nohup bash ./main.sh &
|
9 |
+
export TF_CPP_MIN_LOG_LEVEL="2"
|
10 |
+
tensorboard --logdir=logs/44k --host 0.0.0.0 --port 7860
|
11 |
+
fi
|
12 |
|
13 |
+
# echo "Jupyter Lab token $JUPYTER_TOKEN"
|
14 |
# jupyter-lab \
|
15 |
# --ip 0.0.0.0 \
|
16 |
# --port 7860 \
|
|
|
21 |
# --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
|
22 |
# --ServerApp.disable_check_xsrf=True \
|
23 |
# --LabApp.news_url=None \
|
24 |
+
# --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate"
|
|
|
|