monstxr commited on
Commit
8bb90f8
·
verified ·
1 Parent(s): 4ec12fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from ultralytics import YOLO
2
  import gradio as gr
3
  from PIL import Image
4
 
5
- # Load YOLOv11 small model (CPU, auto-download)
6
- model = YOLO("yolov11n") # <- no local file needed
7
 
8
  def detect(image):
9
  results = model.predict(source=image, device="cpu")
 
2
  import gradio as gr
3
  from PIL import Image
4
 
5
+ # Load YOLOv11 small model from local weights
6
+ model = YOLO("models/yolov11n.pt")
7
 
8
  def detect(image):
9
  results = model.predict(source=image, device="cpu")