Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
from ultralytics import YOLO
|
| 3 |
|
| 4 |
# Load YOLOv11 models from Hugging Face Hub
|
| 5 |
-
best_model = YOLO('https://huggingface.co/poudel/yolov8-cargo-package-counter/
|
| 6 |
-
last_model = YOLO('https://huggingface.co/poudel/yolov8-cargo-package-counter/
|
| 7 |
|
| 8 |
# Function to detect and count packages using the selected model
|
| 9 |
def count_packages(image, model_choice):
|
|
|
|
| 2 |
from ultralytics import YOLO
|
| 3 |
|
| 4 |
# Load YOLOv11 models from Hugging Face Hub
|
| 5 |
+
best_model = YOLO('https://huggingface.co/poudel/yolov8-cargo-package-counter/blob/main/1/best.pt')
|
| 6 |
+
last_model = YOLO('https://huggingface.co/poudel/yolov8-cargo-package-counter/blob/main/1/last.pt')
|
| 7 |
|
| 8 |
# Function to detect and count packages using the selected model
|
| 9 |
def count_packages(image, model_choice):
|