Spaces:
Sleeping
Sleeping
Download src/config.py from low-key-007/yoloapi: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/low-key-007/yoloapi/resolve/main/src/config.py
- Command line
-
hf download hf://spaces/low-key-007/yoloapi/src/config.py
-
curl -L -o config.py https://huggingface.co/spaces/low-key-007/yoloapi/resolve/main/src/config.py
407 Bytes
| import os | |
| class Config: | |
| # Model Settings | |
| # Use environment variable or default to local path | |
| MODEL_PATH = os.getenv("MODEL_PATH", "models/yolov8x.pt") | |
| CONFIDENCE_THRESHOLD = 0.25 | |
| IMG_SIZE = 640 | |
| # API Settings | |
| API_TITLE = "AgriVision Detection API" | |
| API_VERSION = "2.1.0" | |
| API_DESC = "High-performance YOLOv8 inference engine for real-time crop/weed differentiation." |