Spaces:
Sleeping

yoloapi / src /config.py
low-key-007's picture
Create config.py
65c926d verified
Raw History Blame Contribute Delete
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."