increase GPU duration to 600
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from handlers import video_handler as vh
|
|
| 9 |
model_path = "yolov8n.pt" # YOLOv8 model path
|
| 10 |
|
| 11 |
|
| 12 |
-
@spaces.GPU(duration=
|
| 13 |
def process_video(video_file):
|
| 14 |
"""
|
| 15 |
Processes the uploaded video file by extracting key frames, cropping them, and generating a processed video.
|
|
|
|
| 9 |
model_path = "yolov8n.pt" # YOLOv8 model path
|
| 10 |
|
| 11 |
|
| 12 |
+
@spaces.GPU(duration=600)
|
| 13 |
def process_video(video_file):
|
| 14 |
"""
|
| 15 |
Processes the uploaded video file by extracting key frames, cropping them, and generating a processed video.
|