Spaces:
Running
Running
Add Gradio app and requirements
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def yolov8_func(image,
|
|
9 |
iou_thresold=0.50):
|
10 |
|
11 |
# Load the YOLOv8 model
|
12 |
-
model = YOLO('/
|
13 |
|
14 |
# Make predictions
|
15 |
result = model.predict(image, conf=conf_thresold, iou=iou_thresold, imgsz=image_size)
|
|
|
9 |
iou_thresold=0.50):
|
10 |
|
11 |
# Load the YOLOv8 model
|
12 |
+
model = YOLO(''models/best.pt') # Use your custom model path here
|
13 |
|
14 |
# Make predictions
|
15 |
result = model.predict(image, conf=conf_thresold, iou=iou_thresold, imgsz=image_size)
|