Add HUGGINGFACE_TOKEN passthrough for clip/blip and update .env.example

This commit is contained in:
2026-03-21 10:09:04 +01:00
parent ecf8c9a401
commit 4218034d70
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ BLIP_URL=http://blip:8000
YOLO_URL=http://yolo:8000 YOLO_URL=http://yolo:8000
QDRANT_SVC_URL=http://qdrant-svc:8000 QDRANT_SVC_URL=http://qdrant-svc:8000
# HuggingFace token for private/gated models (optional)
HUGGINGFACE_TOKEN=
# Qdrant wrapper (qdrant-svc) # Qdrant wrapper (qdrant-svc)
QDRANT_HOST=qdrant QDRANT_HOST=qdrant
QDRANT_PORT=6333 QDRANT_PORT=6333

View File

@@ -51,6 +51,7 @@ services:
environment: environment:
- MODEL_NAME=ViT-B-32 - MODEL_NAME=ViT-B-32
- MODEL_PRETRAINED=openai - MODEL_PRETRAINED=openai
- HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
blip: blip:
build: build:
@@ -59,6 +60,7 @@ services:
environment: environment:
#- BLIP_MODEL=Salesforce/blip-image-captioning-base #- BLIP_MODEL=Salesforce/blip-image-captioning-base
- BLIP_MODEL=Salesforce/blip-image-captioning-small - BLIP_MODEL=Salesforce/blip-image-captioning-small
- HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
yolo: yolo:
build: build: