Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import os
|
|
| 13 |
|
| 14 |
# Load the pre-trained model and initialize the SORT tracker
|
| 15 |
model_path = 'best.pt' # Ensure this path points to the model file
|
| 16 |
-
model =
|
| 17 |
tracker = Sort()
|
| 18 |
|
| 19 |
def process_video(uploaded_file):
|
|
|
|
| 13 |
|
| 14 |
# Load the pre-trained model and initialize the SORT tracker
|
| 15 |
model_path = 'best.pt' # Ensure this path points to the model file
|
| 16 |
+
model = YOLO(model_path, device='cpu')
|
| 17 |
tracker = Sort()
|
| 18 |
|
| 19 |
def process_video(uploaded_file):
|