kadirnar commited on
Commit
7a9dce1
1 Parent(s): 3d40ebe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -26,7 +26,6 @@ category_dict = {
26
 
27
  @spaces.GPU(duration=200)
28
  def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
29
- model_path = download_models(model_id)
30
  model = YOLOv10.from_pretrained(f"kadirnar/{model_id}")
31
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
32
  detections = sv.Detections.from_ultralytics(results)
 
26
 
27
  @spaces.GPU(duration=200)
28
  def yolov10_inference(image, model_id, image_size, conf_threshold, iou_threshold):
 
29
  model = YOLOv10.from_pretrained(f"kadirnar/{model_id}")
30
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
31
  detections = sv.Detections.from_ultralytics(results)