Fix leafweb-vision: use YAML list form for command to avoid parse errors
This commit is contained in:
@@ -3,7 +3,13 @@ services:
|
||||
image: ultralytics/ultralytics:latest
|
||||
container_name: leafweb-vision
|
||||
restart: unless-stopped
|
||||
command: bash -c "pip install 'streamlit>=1.29.0' -q --root-user-action=ignore && sed -i 's/cv2.destroyAllWindows().*$/pass # cv2.destroyAllWindows() disabled in headless/' /ultralytics/ultralytics/solutions/streamlit_inference.py && yolo solutions inference"
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- >-
|
||||
pip install 'streamlit>=1.29.0' -q --root-user-action=ignore &&
|
||||
sed -i 's/cv2.destroyAllWindows()/pass/' /ultralytics/ultralytics/solutions/streamlit_inference.py &&
|
||||
yolo solutions inference
|
||||
ports:
|
||||
- "8501:8501"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user