kadirnar commited on
Commit
f175ffd
1 Parent(s): ea3b924

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def yolov9_inference(img_path, model_id, image_size, conf_threshold, iou_thresho
25
 
26
  # Load the model
27
  model_path = download_models(model_id)
28
- model = yolov9.load(model_path, device="cpu")
29
 
30
  # Set model parameters
31
  model.conf = conf_threshold
 
25
 
26
  # Load the model
27
  model_path = download_models(model_id)
28
+ model = yolov9.load(model_path, device="cuda:0")
29
 
30
  # Set model parameters
31
  model.conf = conf_threshold