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
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user