Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit ·
d9af93d
1
Parent(s): 2a94f77
Deploy hyper3labs/HyperView from Hyper3Labs/hyperview-spaces@ad6a212
Browse files- Dockerfile +4 -4
- README.md +2 -2
Dockerfile
CHANGED
|
@@ -33,12 +33,12 @@ COPY --chown=user demo.py ./demo.py
|
|
| 33 |
ENV HYPERVIEW_DATASETS_DIR=/home/user/app/demo_data/datasets \
|
| 34 |
HYPERVIEW_MEDIA_DIR=/home/user/app/demo_data/media
|
| 35 |
|
| 36 |
-
# Precompute at build time so the Space starts fast.
|
| 37 |
-
RUN python -c "from demo import build_dataset; build_dataset()"
|
| 38 |
-
|
| 39 |
EXPOSE 7860
|
| 40 |
|
| 41 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 42 |
CMD curl -f http://localhost:7860/__hyperview__/health || exit 1
|
| 43 |
|
|
|
|
|
|
|
|
|
|
| 44 |
CMD ["python", "demo.py"]
|
|
|
|
| 33 |
ENV HYPERVIEW_DATASETS_DIR=/home/user/app/demo_data/datasets \
|
| 34 |
HYPERVIEW_MEDIA_DIR=/home/user/app/demo_data/media
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
EXPOSE 7860
|
| 37 |
|
| 38 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=600s --retries=3 \
|
| 39 |
CMD curl -f http://localhost:7860/__hyperview__/health || exit 1
|
| 40 |
|
| 41 |
+
# Dataset is built at first startup (model download + embedding computation).
|
| 42 |
+
# Precomputing at Docker build time causes LanceDB to be stored in overlay
|
| 43 |
+
# filesystem layers, which are extremely slow to reopen on free-tier CPUs.
|
| 44 |
CMD ["python", "demo.py"]
|
README.md
CHANGED
|
@@ -19,8 +19,8 @@ This example runs HyperView with:
|
|
| 19 |
- CLIP embeddings (`openai/clip-vit-base-patch32`) for Euclidean layout
|
| 20 |
- HyCoCLIP embeddings (`hycoclip-vit-s`) for Poincaré layout
|
| 21 |
|
| 22 |
-
The Docker image installs released HyperView packages from PyPI
|
| 23 |
-
|
| 24 |
|
| 25 |
## Reuse This Template
|
| 26 |
|
|
|
|
| 19 |
- CLIP embeddings (`openai/clip-vit-base-patch32`) for Euclidean layout
|
| 20 |
- HyCoCLIP embeddings (`hycoclip-vit-s`) for Poincaré layout
|
| 21 |
|
| 22 |
+
The Docker image installs released HyperView packages from PyPI. The dataset,
|
| 23 |
+
embeddings, and layouts are computed at first startup.
|
| 24 |
|
| 25 |
## Reuse This Template
|
| 26 |
|