notsakeeb commited on
Commit
5f7eb7d
·
verified ·
1 Parent(s): 0e504c6

Update ToolSet.py

Browse files
Files changed (1) hide show
  1. ToolSet.py +2 -1
ToolSet.py CHANGED
@@ -253,8 +253,9 @@ Do NOT send commands that block indefinitely (e.g., `input()`).""",
253
 
254
 
255
  class YouTubeFrameExtractor:
256
- def __init__(self, model_path: str = 'yolov8n.pt', frame_rate: int = 1):
257
  # Load YOLOv8 model
 
258
  self.model = YOLO(model_path)
259
  self.frame_rate = frame_rate # frames per second to sample
260
 
 
253
 
254
 
255
  class YouTubeFrameExtractor:
256
+ def __init__(self, model_path: str, frame_rate: int = 1):
257
  # Load YOLOv8 model
258
+ model_path = os.getenv("YOLO_CONFIG_DIR")
259
  self.model = YOLO(model_path)
260
  self.frame_rate = frame_rate # frames per second to sample
261