github-actions[bot] commited on
Commit ·
304c9ed
1
Parent(s): 6da4211
Deploy hyper3labs/HyperView-ABO-Catalog from Hyper3Labs/hyperview-spaces@1969282
Browse files- .dockerignore +2 -1
- Dockerfile +1 -3
- demo.py +1 -4
.dockerignore
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
__pycache__/
|
| 2 |
*.pyc
|
| 3 |
.DS_Store
|
| 4 |
-
|
|
|
|
|
|
| 1 |
__pycache__/
|
| 2 |
*.pyc
|
| 3 |
.DS_Store
|
| 4 |
+
.env
|
| 5 |
+
.env.*
|
Dockerfile
CHANGED
|
@@ -30,9 +30,7 @@ RUN pip install "${HYPERVIEW_PACKAGE}" && python -c "import hyperview; print('hy
|
|
| 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 |
|
| 33 |
-
COPY --chown=user
|
| 34 |
-
COPY --chown=user .hyperview ./.hyperview
|
| 35 |
-
COPY --chown=user static ./static
|
| 36 |
|
| 37 |
RUN python - <<'PY'
|
| 38 |
from pathlib import Path
|
|
|
|
| 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 |
|
| 33 |
+
COPY --chown=user . .
|
|
|
|
|
|
|
| 34 |
|
| 35 |
RUN python - <<'PY'
|
| 36 |
from pathlib import Path
|
demo.py
CHANGED
|
@@ -248,14 +248,11 @@ def add_abo_samples(dataset: hv.Dataset) -> None:
|
|
| 248 |
]
|
| 249 |
|
| 250 |
if not FORCE_SAMPLE_REFRESH and not missing_ids and not missing_media:
|
| 251 |
-
product_counts.update(record["product_type"] for record in records)
|
| 252 |
print(
|
| 253 |
f"ABO samples already prepared ({len(records)} products). "
|
| 254 |
-
"
|
| 255 |
flush=True,
|
| 256 |
)
|
| 257 |
-
print(f"Product-type counts: {dict(product_counts)}", flush=True)
|
| 258 |
-
return
|
| 259 |
|
| 260 |
for index, record in enumerate(records, start=1):
|
| 261 |
sample_id = safe_sample_id(str(record["item_id"]), str(record["image_id"]))
|
|
|
|
| 248 |
]
|
| 249 |
|
| 250 |
if not FORCE_SAMPLE_REFRESH and not missing_ids and not missing_media:
|
|
|
|
| 251 |
print(
|
| 252 |
f"ABO samples already prepared ({len(records)} products). "
|
| 253 |
+
"Refreshing sample metadata and media paths.",
|
| 254 |
flush=True,
|
| 255 |
)
|
|
|
|
|
|
|
| 256 |
|
| 257 |
for index, record in enumerate(records, start=1):
|
| 258 |
sample_id = safe_sample_id(str(record["item_id"]), str(record["image_id"]))
|