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:
@@ -3,12 +3,13 @@ services:
|
|||||||
image: ultralytics/ultralytics:latest
|
image: ultralytics/ultralytics:latest
|
||||||
container_name: leafweb-vision
|
container_name: leafweb-vision
|
||||||
restart: unless-stopped
|
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:
|
ports:
|
||||||
- "8501:8501"
|
- "8501:8501"
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/leafweb-vision/data:/data
|
- /srv/leafweb-vision/data:/data
|
||||||
- /srv/leafweb-vision/runs:/root/runs
|
- /srv/leafweb-vision/runs:/root/runs
|
||||||
|
- pip_cache:/root/.cache/pip
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
@@ -27,3 +28,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
npm-network:
|
npm-network:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pip_cache:
|
||||||
|
|||||||
Reference in New Issue
Block a user