Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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="
|
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
|