kadirnar commited on
Commit
12dfa2f
1 Parent(s): 80dd37b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def yolov9_inference(img_path, model_id, image_size, conf_threshold, iou_thresho
41
 
42
  # Load the model
43
  model_path = attempt_download_from_hub(model_id)
44
- model = yolov9.load(model_path, device="cuda")
45
 
46
  # Set model parameters
47
  model.conf = conf_threshold
 
41
 
42
  # Load the model
43
  model_path = attempt_download_from_hub(model_id)
44
+ model = yolov9.load(model_path, device="cpu")
45
 
46
  # Set model parameters
47
  model.conf = conf_threshold