github-actions[bot] commited on
Commit
47dc79f
·
1 Parent(s): 1857618

Deploy hyper3labs/HyperView from Hyper3Labs/hyperview-spaces@8d76fee

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -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
 
 
39
 
40
  ENV HOST=0.0.0.0 \
41
  PORT=7860
 
35
  HYPERVIEW_MEDIA_DIR=/home/user/app/demo_data/media \
36
  DEMO_SAMPLES=${DEMO_SAMPLES}
37
 
38
+ # 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