Devon12 commited on
Commit
5d1b970
·
1 Parent(s): 25ee704

Add Gradio app and requirements

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ def yolov8_func(image,
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)
 
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)