Spaces:
Sleeping

File size: 407 Bytes
65c926d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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."