Spaces:
Runtime error
Runtime error
github-actions[bot] commited on
Commit ·
5285f34
1
Parent(s): 47dc79f
Deploy hyper3labs/HyperView from Hyper3Labs/hyperview-spaces@69813e7
Browse files- Dockerfile +1 -2
- demo.py +0 -1
Dockerfile
CHANGED
|
@@ -36,8 +36,7 @@ ENV HYPERVIEW_DATASETS_DIR=/home/user/app/demo_data/datasets \
|
|
| 36 |
DEMO_SAMPLES=${DEMO_SAMPLES}
|
| 37 |
|
| 38 |
# Precompute at build time so the Space starts fast.
|
| 39 |
-
|
| 40 |
-
RUN python demo.py --precompute || echo "WARNING: precompute failed, will compute at startup"
|
| 41 |
|
| 42 |
ENV HOST=0.0.0.0 \
|
| 43 |
PORT=7860
|
|
|
|
| 36 |
DEMO_SAMPLES=${DEMO_SAMPLES}
|
| 37 |
|
| 38 |
# Precompute at build time so the Space starts fast.
|
| 39 |
+
RUN python demo.py --precompute
|
|
|
|
| 40 |
|
| 41 |
ENV HOST=0.0.0.0 \
|
| 42 |
PORT=7860
|
demo.py
CHANGED
|
@@ -43,7 +43,6 @@ def _ensure_demo_ready(dataset: hv.Dataset) -> None:
|
|
| 43 |
image_key=HF_IMAGE_KEY,
|
| 44 |
label_key=HF_LABEL_KEY,
|
| 45 |
max_samples=NUM_SAMPLES,
|
| 46 |
-
shuffle=True,
|
| 47 |
)
|
| 48 |
|
| 49 |
spaces = dataset.list_spaces()
|
|
|
|
| 43 |
image_key=HF_IMAGE_KEY,
|
| 44 |
label_key=HF_LABEL_KEY,
|
| 45 |
max_samples=NUM_SAMPLES,
|
|
|
|
| 46 |
)
|
| 47 |
|
| 48 |
spaces = dataset.list_spaces()
|