Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import PIL.Image as Image
|
| 3 |
from ultralytics import ASSETS, YOLO
|
| 4 |
|
| 5 |
-
model = YOLO("
|
| 6 |
|
| 7 |
def predict_image(img, conf_threshold, iou_threshold):
|
| 8 |
"""Predicts persons in an image and returns the image with detections and count."""
|
|
|
|
| 2 |
import PIL.Image as Image
|
| 3 |
from ultralytics import ASSETS, YOLO
|
| 4 |
|
| 5 |
+
model = YOLO("yolo12x.pt")
|
| 6 |
|
| 7 |
def predict_image(img, conf_threshold, iou_threshold):
|
| 8 |
"""Predicts persons in an image and returns the image with detections and count."""
|