Devon12 commited on
Commit
25ee704
·
1 Parent(s): 8b092c7

Add Gradio app and requirements

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('/content/runs/detect/train/weights/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)
 
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)