kadirnar commited on
Commit
5953198
1 Parent(s): 853c062

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model = YOLOv10(MODEL_PATH)
14
  box_annotator = sv.BoxAnnotator()
15
 
16
  @spaces.GPU(duration=200)
17
- def detect(image, model_id, image_size, conf_threshold, iou_threshold):
18
  model_path = download_models(model_id)
19
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
20
  detections = sv.Detections.from_ultralytics(results)
 
14
  box_annotator = sv.BoxAnnotator()
15
 
16
  @spaces.GPU(duration=200)
17
+ def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
18
  model_path = download_models(model_id)
19
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
20
  detections = sv.Detections.from_ultralytics(results)