kadirnar commited on
Commit
a6574e1
·
verified ·
1 Parent(s): 2432ef4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,8 +46,8 @@ def attempt_download_from_hub(repo_id, hf_token=None):
46
 
47
  @spaces.GPU(duration=200)
48
  def LeYOLO_inference(image, model_id, image_size, conf_threshold, iou_threshold):
49
- MODEL_PATH = attempt_download_from_hub("kadirnar/yolov10x")
50
- model = model = YOLO(f"kadirnar/{model_id}")
51
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
52
  detections = sv.Detections.from_ultralytics(results)
53
 
 
46
 
47
  @spaces.GPU(duration=200)
48
  def LeYOLO_inference(image, model_id, image_size, conf_threshold, iou_threshold):
49
+ MODEL_PATH = attempt_download_from_hub(model_id)
50
+ model = model = YOLO(MODEL_PATH)
51
  results = model(source=image, imgsz=image_size, iou=iou_threshold, conf=conf_threshold, verbose=False)[0]
52
  detections = sv.Detections.from_ultralytics(results)
53