Spaces:
Sleeping
Sleeping
Update ToolSet.py
Browse files- 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
|
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 |
|