We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd34509 commit 8d76feeCopy full SHA for 8d76fee
1 file changed
spaces/imagenette-clip-hycoclip/Dockerfile
@@ -35,7 +35,9 @@ ENV HYPERVIEW_DATASETS_DIR=/home/user/app/demo_data/datasets \
35
HYPERVIEW_MEDIA_DIR=/home/user/app/demo_data/media \
36
DEMO_SAMPLES=${DEMO_SAMPLES}
37
38
-RUN python demo.py --precompute
+# Precompute at build time so the Space starts fast.
39
+# If this fails, the app will still compute at startup (slower first launch).
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
0 commit comments