github-actions[bot] commited on
Commit ·
6da4211
1
Parent(s): 2fe449a
Deploy hyper3labs/HyperView-ABO-Catalog from Hyper3Labs/hyperview-spaces@9373062
Browse files- Dockerfile +1 -10
Dockerfile
CHANGED
|
@@ -26,16 +26,7 @@ ARG HYPER_MODELS_VERSION=0.2.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 pip install "${HYPERVIEW_PACKAGE}" && python -
|
| 30 |
-
import inspect
|
| 31 |
-
import hyperview as hv
|
| 32 |
-
|
| 33 |
-
launch_params = set(inspect.signature(hv.launch).parameters)
|
| 34 |
-
print("hyperview", hv.__version__, inspect.signature(hv.launch))
|
| 35 |
-
missing = {"block", "workspace_id"} - launch_params
|
| 36 |
-
if missing:
|
| 37 |
-
raise RuntimeError(f"Installed HyperView is missing launch parameters: {sorted(missing)}")
|
| 38 |
-
PY
|
| 39 |
RUN pip install "hyper-models==${HYPER_MODELS_VERSION}" && python -c "import hyper_models; print('hyper_models', hyper_models.__version__)"
|
| 40 |
RUN pip install "datasets>=4.5.0" "Pillow>=12.0.0"
|
| 41 |
|
|
|
|
| 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 pip install "${HYPERVIEW_PACKAGE}" && python -c "import hyperview; print('hyperview', hyperview.__version__)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
RUN pip install "hyper-models==${HYPER_MODELS_VERSION}" && python -c "import hyper_models; print('hyper_models', hyper_models.__version__)"
|
| 31 |
RUN pip install "datasets>=4.5.0" "Pillow>=12.0.0"
|
| 32 |
|