Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +4 -0
- start_server.sh +2 -2
Dockerfile
CHANGED
|
@@ -99,6 +99,10 @@ RUN pip install --no-cache-dir \
|
|
| 99 |
"pyyaml>=6.0.3,<7" \
|
| 100 |
"httpx>=0.28.1,<0.29"
|
| 101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
# App files
|
| 103 |
COPY --chown=user:user . /home/user/app
|
| 104 |
|
|
|
|
| 99 |
"pyyaml>=6.0.3,<7" \
|
| 100 |
"httpx>=0.28.1,<0.29"
|
| 101 |
|
| 102 |
+
# Register miniconda Python as the Jupyter kernel so imports work correctly
|
| 103 |
+
RUN pip install --no-cache-dir ipykernel && \
|
| 104 |
+
python -m ipykernel install --user --name python3 --display-name "Python 3"
|
| 105 |
+
|
| 106 |
# App files
|
| 107 |
COPY --chown=user:user . /home/user/app
|
| 108 |
|
start_server.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
| 3 |
|
| 4 |
-
NOTEBOOK_DIR="/
|
| 5 |
|
| 6 |
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
|
| 7 |
|
|
@@ -16,4 +16,4 @@ jupyter-lab \
|
|
| 16 |
--ServerApp.disable_check_xsrf=True \
|
| 17 |
--LabApp.news_url=None \
|
| 18 |
--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
|
| 19 |
-
--notebook-dir=$NOTEBOOK_DIR
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
| 3 |
|
| 4 |
+
NOTEBOOK_DIR="/home/user/app"
|
| 5 |
|
| 6 |
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
|
| 7 |
|
|
|
|
| 16 |
--ServerApp.disable_check_xsrf=True \
|
| 17 |
--LabApp.news_url=None \
|
| 18 |
--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
|
| 19 |
+
--notebook-dir=$NOTEBOOK_DIR
|