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