mnm-matin commited on
Commit
bb243a7
·
verified ·
1 Parent(s): 04e7898

Use bundled latest HyperView wheel

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ vendor/hyperview-0.6.3.dev0+g1ddcd10b5.d20260607-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -2,8 +2,8 @@ FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  build-essential \
 
5
  curl \
6
- git \
7
  libssl-dev \
8
  pkg-config \
9
  && rm -rf /var/lib/apt/lists/*
@@ -21,13 +21,14 @@ WORKDIR $HOME/app
21
 
22
  RUN pip install --upgrade pip
23
 
24
- ARG HYPERVIEW_PACKAGE="hyperview @ git+https://github.com/Hyper3Labs/HyperView.git@1ddcd10b5cf4bf96f5989e8779698164cb92c1af"
25
  ARG HYPER_MODELS_VERSION=0.3.0
26
 
 
 
27
  # Install CPU-only PyTorch first so the Space does not pull the default CUDA bundle.
28
  RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
29
- RUN echo "Installing ${HYPERVIEW_PACKAGE}" \
30
- && pip install "${HYPERVIEW_PACKAGE}" \
31
  && python - <<'PY'
32
  import inspect
33
  import hyperview as hv
 
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  build-essential \
5
+ ca-certificates \
6
  curl \
 
7
  libssl-dev \
8
  pkg-config \
9
  && rm -rf /var/lib/apt/lists/*
 
21
 
22
  RUN pip install --upgrade pip
23
 
 
24
  ARG HYPER_MODELS_VERSION=0.3.0
25
 
26
+ COPY --chown=user vendor/*.whl /tmp/hyperview-wheel/
27
+
28
  # Install CPU-only PyTorch first so the Space does not pull the default CUDA bundle.
29
  RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
30
+ RUN echo "Installing bundled HyperView wheel" \
31
+ && pip install /tmp/hyperview-wheel/*.whl \
32
  && python - <<'PY'
33
  import inspect
34
  import hyperview as hv
README.md CHANGED
@@ -59,9 +59,10 @@ VISA_SAMPLES_PER_CATEGORY=12 HYPERVIEW_PORT=6265 \
59
  uv run python hyperview-spaces/spaces/manufacturing-visa-reference-clip-hyper3clip/demo.py
60
  ```
61
 
62
- The Docker image installs HyperView from the public HyperView GitHub package and
63
- loads Hyper3-CLIP through the public `hyper-models` provider catalog entry for
64
- the gated `hyper3labs/hyper3-clip-v0.5` model repository. The Space needs an
65
- `HF_TOKEN` secret with access to that model. If unavailable, the Space can start
66
- with a clearly labeled CLIP fallback unless `HYPERVIEW_ALLOW_CANDIDATE_FALLBACK=0`
67
- is set.
 
 
59
  uv run python hyperview-spaces/spaces/manufacturing-visa-reference-clip-hyper3clip/demo.py
60
  ```
61
 
62
+ The Docker image installs the bundled latest HyperView wheel for this repo and
63
+ uses HyperView's public dataset, UI, and panel command APIs. Hyper3-CLIP loads
64
+ through the public `hyper-models` provider catalog entry for the gated
65
+ `hyper3labs/hyper3-clip-v0.5` model repository. The Space needs an `HF_TOKEN`
66
+ secret with access to that model. If unavailable, the Space can start with a
67
+ clearly labeled CLIP fallback unless `HYPERVIEW_ALLOW_CANDIDATE_FALLBACK=0` is
68
+ set.
vendor/hyperview-0.6.3.dev0+g1ddcd10b5.d20260607-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87eaf0d78cbaa1b63f4b75cc056d40a07be7ce8eb4eaede059a719039b787a6c
3
+ size 1081124