Fix leafweb-vision: use yolo solutions inference + install streamlit at startup

streamlit-predict was removed in newer ultralytics; yolo solutions inference
is the current equivalent. Installs streamlit on startup via pip cache volume.
This commit is contained in:
2026-02-21 19:46:00 +00:00
parent 0aae4324a8
commit 3eeaa8ff6d
+5 -1
View File
@@ -3,12 +3,13 @@ services:
image: ultralytics/ultralytics:latest
container_name: leafweb-vision
restart: unless-stopped
command: yolo streamlit-predict
command: bash -c "pip install 'streamlit>=1.29.0' -q --root-user-action=ignore && yolo solutions inference"
ports:
- "8501:8501"
volumes:
- /srv/leafweb-vision/data:/data
- /srv/leafweb-vision/runs:/root/runs
- pip_cache:/root/.cache/pip
deploy:
resources:
reservations:
@@ -27,3 +28,6 @@ services:
networks:
npm-network:
external: true
volumes:
pip_cache: